From c4be26d44c9f2fd6ed4bd323714ff6bf2e67ed0d Mon Sep 17 00:00:00 2001 From: Esteban DUGUEPEROUX Date: Wed, 9 Aug 2023 22:28:58 +0200 Subject: [PATCH] Enable opengl event if with_vtk is false - Enable opengl event if with_vtk is false as done in PCL CMakeLists.txt --- recipes/pcl/all/conanfile.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/recipes/pcl/all/conanfile.py b/recipes/pcl/all/conanfile.py index 40d8c966e242f..88182978f1779 100644 --- a/recipes/pcl/all/conanfile.py +++ b/recipes/pcl/all/conanfile.py @@ -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") @@ -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)