Support component-level keys for boost
Ryanf55 opened this issue · comments
If my interpretation of the ROS style guide is correct, a ROS developer should try to reduce their usage of boost to the minimum. Luckily, boost provides a COMPONENT level find and install. This has the advantage of requiring less boost to be installed on the system, and less linked in.
For example:
find_package(Boost COMPONENTS program_options REQUIRED)
...
target_link_libraries(myLibrary PUBLIC boost::program_options)
Ideally, in my package.xml, I could specify only needing the program options component of boost list so:
<depend>boost-program-options</depend>
Which would install libboost-program-options-dev
.
If this method of installing dependencies is desirable and would be accepted into rosdep, please let me know.
So we already have these kinds of keys in rosdep:
Lines 2648 to 2670 in 935070e
Some of them are missing, I'll contribute the ones I need matching the existing pattern.