Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

Commit

Permalink
Enable opengl event if with_vtk is false
Browse files Browse the repository at this point in the history
- Enable opengl event if with_vtk is false as done in PCL CMakeLists.txt
  • Loading branch information
EstebanDugueperoux2 committed Aug 9, 2023
1 parent 161aef4 commit c4be26d
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions recipes/pcl/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,7 @@ def requirements(self):
self.requires("libusb/1.0.26")
if self.options.with_pcap:
self.requires("libpcap/1.10.4")
if self.options.with_opengl and self.options.with_vtk:
# OpenGL is only used if VTK is available
if self.options.with_opengl:
self.requires("opengl/system")
self.requires("freeglut/3.4.0")
self.requires("glew/2.2.0")
Expand All @@ -119,11 +118,6 @@ def requirements(self):
# self.requires("dssdk/x.x.x")
# self.requires("rssdk/x.x.x")

def package_id(self):
if self.info.options.with_vtk:
# with_opengl has no effect if VTK is not available
self.info.options.with_opengl = False

def validate(self):
if self.settings.compiler.cppstd:
check_min_cppstd(self, self._min_cppstd)
Expand Down

0 comments on commit c4be26d

Please sign in to comment.