Boost logo

Boost :

Subject: Re: [boost] Proposal for moving Boost to CMake
From: Mateusz Loskot (mateusz_at_[hidden])
Date: 2017-06-18 21:11:19


On 18 June 2017 at 22:03, Edward Diener via Boost <boost_at_[hidden]> wrote:
> 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

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk