Boost logo

Boost :

Subject: Re: [boost] Feature/cmake-config merged to develop; yml files need to be updated
From: Peter Dimov (lists_at_[hidden])
Date: 2018-12-18 18:40:18


Andrey Semashev wrote:
On 12/18/18 9:09 PM, Peter Dimov via Boost wrote:
> > These configuration files enable a Boost installation to be used from
> > CMake via `find_package(boost_filesystem)`, without relying on
> > FindBoost.
>
> Does this remove the necessity of the CMakeLists.txt files that were added
> recently to multiple libraries?

No, it's a separate thing. These configuration files are installed as part
of issuing `b2 install` from a release. So you get the headers in
/usr/local/include, the libraries in /usr/local/lib, and the configuration
files in /usr/local/lib/cmake (assuming the default prefix of /usr/local/).
This Boost installation is then used from CMake via find_package like f.ex.

https://github.com/boostorg/boost_install/blob/develop/.travis.yml#L59
https://github.com/boostorg/boost_install/blob/develop/test/filesystem/CMakeLists.txt

The CMakeLists.txt files, on the other hand, are used with a different
workflow; you download/submodule the libraries from Github into
subdirectories of your project, and then use them from CMake with
add_subdirectory. Like f.ex.

https://github.com/boostorg/mp11/blob/develop/.travis.yml#L248
https://github.com/boostorg/mp11/blob/develop/test/cmake_subdir_test/CMakeLists.txt


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