From: Gavin Lambert (boost_at_[hidden])
Date: 2021-06-13 23:36:03


On 11/06/2021 7:52 pm, Alexander Grund wrote:
> I meant the case where Boost::foo is ONLY ever build as static. I.e.
> `add_library(Boost::Foo STATIC source.cpp)` as opposed to
> `add_library(Boost::Foo source.cpp)` in CMake terms.
>
> So there is only static Boost::Foo and no shared version EVER.
> This would work, wouldn't it?

Only if the library doesn't have any singletons, or otherwise can cope
with multiple independent "islands".