ros / class_loader

ROS-independent library for dynamic class (i.e. plugin) introspection and loading from runtime libraries
http://www.ros.org/wiki/class_loader
35 stars 95 forks source link

Use boost library names instead of Boost_LIBRARIES var for .pc file generation #187

Open planthaber opened 3 years ago

planthaber commented 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.