Boost logo

Boost :

Subject: Re: [boost] Proposal for moving Boost to CMake
From: Peter Dimov (lists_at_[hidden])
Date: 2017-06-19 01:12:06


Glen Fernandes wrote:
> +1. I'm interested in the [typical] Boost header-only library case:
> - The CMakeLists.txt for building its tests
> - The .cmake file for locating the library
> - The consumption of the library in a user's CMakeLists
>
> I have a guess ( based on my fairly basic usage of CMake) that at least #3
> there should be simple (i.e. would it involve more than adding to
> include_directories or target_include_directories?).

In principle, neither should be needed, only target_link_libraries( target
Boost::Whatever ). The usage requirements of Boost::Whatever would add the
include directory (and its dependencies would transitively add their include
directories.)


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