Boost logo

Boost :

From: Vinnie Falco (vinnie.falco_at_[hidden])
Date: 2024-01-25 13:40:04


On Wed, Jan 24, 2024 at 7:32 PM Peter Dimov via Boost <boost_at_[hidden]>
wrote:

> Interestingly, compiled libraries are in a way more convenient under CMake.
>

It is nice when a library makes it easy for you to write your own build
script. The "src.cpp" (including everything) model had that going for it.
For simple libraries it is almost possible to just compile all files in
src/*.cpp recursively. Except for the macro such as (for example)
BOOST_URLS_SOURCE. This is needed to set the DLL import/export macros
correctly. But maybe this could be added at the top of each cpp file:

    #define BOOST_URLS_SOURCE

Then this could be taken out of the build script and it would be easier for
users to write their own build script. I haven't thought this through
completely so there could be a flaw in it. Also, libraries that have very
complicated build scripts such as the need to set even more macros or
provide a bunch of configurations, would be harder for users to write build
scripts for.

Thanks


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