On 18 June 2017 at 22:03, Edward Diener via Boost
On 6/18/2017 3:05 PM, Louis Dionne via Boost wrote:
The proposal is to add to the Boost library guidelines the requirement that a XYZConfig.cmake module be provided with the installation of any Boost.XYZ library. This module would simply export the proper CMake targets, which would solve the problem of integrating Boost with a CMake-based build system and would remove the need for the custom FindBoost support in CMake.
Please give a specific example of what this XYZConfig.cmake module entails ? For a header-only library ?
AFAIU, the advantage of using CMake exported targets for header-only libraries is [1]: "one can "link" to a (header-only) INTERFACE library using target_link_libraries and get the include directories added to compilation of one's own sources." [1] https://cmake.org/pipermail/cmake-developers/2015-July/025680.html
For a built library ?
Feature-wise, similar to the above, but with completing linker arguments. Best regards, -- Mateusz Loskot, http://mateusz.loskot.net