
Ruben Perez wrote:
On Sun, 22 Dec 2024, 17:10 Peter Dimov,
mailto:pdimov@gmail.com > 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.