Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2024-12-22 16:30:58


Ruben Perez wrote:
> On Sun, 22 Dec 2024, 17:10 Peter Dimov, <pdimov_at_[hidden]
> <mailto:pdimov_at_[hidden]> > wrote:
>
> Regarding
>
> boost_set_cxx20_module_settings(boost_assert)
>
> You can't rely on this function being available in a library's
> CMakeLists.txt
> file. Libraries (except those by Andrey) can be used without the
> superproject.
>
>
>
> My assumption here was "modules only work with the superproject, either via
> add_subdirectory or via install + find_package". I was likely too naive, and the
> restriction should probably be lifted. How about providing the function in a
> helper cmake script which must be included by code using modules? We can
> always copy-paste the settings, but it can be a little bit of a mess.

At some point, once this stabilizes, we'll probably put it in the
`boostdep --cmake` output. But I agree that while developing it's more
convenient to only have to change it in one place.


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