Open planthaber opened 3 years ago
This PR only affects the non-catkin case.
In recent versions of FindBoost.cmake (e.g. on Ubuntu 20.04), Boost_LIBRARIES contains the cmake targets (Boost::thread, Boost::system) instead of library names.
pkg-config --libs class_loader retruns [...]-lclass_loader Boost::thread\;Boost::system\;[...]
Those cannot be linked downstream when cmake is not used or find_package(Boost) is not executed again to actually find/define the targets.
This PR only affects the non-catkin case.
In recent versions of FindBoost.cmake (e.g. on Ubuntu 20.04), Boost_LIBRARIES contains the cmake targets (Boost::thread, Boost::system) instead of library names.
pkg-config --libs class_loader retruns [...]-lclass_loader Boost::thread\;Boost::system\;[...]
Those cannot be linked downstream when cmake is not used or find_package(Boost) is not executed again to actually find/define the targets.