Open
Description
I have such a problem: library A finds and includes boost through CMake like this:
find_package(Boost 1.65.1 COMPONENTS chrono system REQUIRED)
target_link_libraries(A ${Boost_LIBRARIES})
boost is a conan package.
then library A becomes a conan package, which i try to include into my project through conan with the help of cmake_find_package generator.
after "conan install . --update" command in my projects's folder, conan creates FindA.cmake file, which, among all, has a line in it:
get_target_property(tmp boost::boost INTERFACE_LINK_LIBRARIES)
as i understand, this line links ALL boost libraries to my target, instead of linking only chrono and system
ldd on my target also shows dependencies on all boost libraries
The question is: how can i configure conan/cmake to link only the libraries that are really needed