Skip to content

Commit c4be26d

Browse files
Enable opengl event if with_vtk is false
- Enable opengl event if with_vtk is false as done in PCL CMakeLists.txt
1 parent 161aef4 commit c4be26d

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

recipes/pcl/all/conanfile.py

+1-7
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,7 @@ def requirements(self):
105105
self.requires("libusb/1.0.26")
106106
if self.options.with_pcap:
107107
self.requires("libpcap/1.10.4")
108-
if self.options.with_opengl and self.options.with_vtk:
109-
# OpenGL is only used if VTK is available
108+
if self.options.with_opengl:
110109
self.requires("opengl/system")
111110
self.requires("freeglut/3.4.0")
112111
self.requires("glew/2.2.0")
@@ -119,11 +118,6 @@ def requirements(self):
119118
# self.requires("dssdk/x.x.x")
120119
# self.requires("rssdk/x.x.x")
121120

122-
def package_id(self):
123-
if self.info.options.with_vtk:
124-
# with_opengl has no effect if VTK is not available
125-
self.info.options.with_opengl = False
126-
127121
def validate(self):
128122
if self.settings.compiler.cppstd:
129123
check_min_cppstd(self, self._min_cppstd)

0 commit comments

Comments
 (0)