Hi guys,
I'm vcpkg maintainer.
Recently we are updating pcl in vcpkg (https://github.com/microsoft/vcpkg/pull/18855), but met some problems:
When vtk, a dependency of pcl, finds qt, an error occurs:
After a long period of searching, we found that pcl modified the value of CMAKE_FIND_LIBRARY_SUFFIXES in _pcloptions.cmake, which caused its downstream dependencies to fail to find their dependencies through find_library.
For example, qt needs libGL.so, and CMAKE_FIND_LIBRARY_SUFFIXES is modified to .a when statically building PCL, which results in find_library expecting to find libGL.a.
See code: https://github.com/PointCloudLibrary/pcl/blob/cd99687bd1f332d77aee06a8e9fbad4fb08c0a44/cmake/pcl_options.cmake#L5-L18
So, please DO NOT do that, any modification of the cmake macro value that has not been backed up and restored will cause errors when using the downstream configuration.
Hi guys, I'm vcpkg maintainer. Recently we are updating pcl in vcpkg (https://github.com/microsoft/vcpkg/pull/18855), but met some problems: When vtk, a dependency of pcl, finds qt, an error occurs:
After a long period of searching, we found that pcl modified the value of
CMAKE_FIND_LIBRARY_SUFFIXES
in _pcloptions.cmake, which caused its downstream dependencies to fail to find their dependencies throughfind_library
. For example, qt needslibGL.so
, andCMAKE_FIND_LIBRARY_SUFFIXES
is modified to.a
when statically building PCL, which results infind_library
expecting to findlibGL.a
. See code: https://github.com/PointCloudLibrary/pcl/blob/cd99687bd1f332d77aee06a8e9fbad4fb08c0a44/cmake/pcl_options.cmake#L5-L18So, please DO NOT do that, any modification of the cmake macro value that has not been backed up and restored will cause errors when using the downstream configuration.
Thanks, Jack