Description
I noticed that setting the with_openmp and with_opencv options for the pcl package through a conanfile.txt does not seem to have any effect. Even though I explicitly set:
[requires]
pcl/1.14.1
[options]
pcl/*:with_openmp=True
pcl/*:with_opencv=True
the resulting build of PCL behaves as if both options were still disabled. The CMake configure output shows that OpenMP and OpenCV support are not being enabled, and the compiled package confirms this.
I'll try to investigate the issue further when I have time—possibly something in the recipe's config_options, configure, or CMake integration path is overriding or ignoring the values passed from a conanfile.txt.
Package and Environment Details
- Package Name/Version: pcl/1.14.1
- Operating System+version: Linux Ubuntu 24.04
- Compiler+version: GCC 13
- Conan version: conan 2.22.0
- Python version: Python 3.13
Conan profile
[settings]
os=Linux
arch=x86_64
compiler=gcc
compiler.version=13
compiler.libcxx=libstdc++11
compiler.cppstd=17
build_type=Release
[options]
[tool_requires]
[buildenv]
CC=/usr/bin/gcc-13
CXX=/usr/bin/g++-13
Steps to reproduce
conanfile.txt:
[requires]
pcl/1.14.1
[generators]
CMakeDeps
[options]
pcl/*:with_openmp=True
pcl/*:with_opencv=True
Logs
with_openmp still shows as False and PCL throws warning that openmp not enabled.
Description
I noticed that setting the with_openmp and with_opencv options for the pcl package through a conanfile.txt does not seem to have any effect. Even though I explicitly set:
the resulting build of PCL behaves as if both options were still disabled. The CMake configure output shows that OpenMP and OpenCV support are not being enabled, and the compiled package confirms this.
I'll try to investigate the issue further when I have time—possibly something in the recipe's config_options, configure, or CMake integration path is overriding or ignoring the values passed from a conanfile.txt.
Package and Environment Details
Conan profile
[settings]
os=Linux
arch=x86_64
compiler=gcc
compiler.version=13
compiler.libcxx=libstdc++11
compiler.cppstd=17
build_type=Release
[options]
[tool_requires]
[buildenv]
CC=/usr/bin/gcc-13
CXX=/usr/bin/g++-13
Steps to reproduce
conanfile.txt:
Logs
with_openmpstill shows asFalseand PCL throws warning that openmp not enabled.