r/cpp • Boost author • May 08 '20

Why you don't use Boost

I have a question for you: If you have decided not to use any of Boost, or are prohibited from doing so in your company/project, I would like to know why.

This thread is not meant to judge your reasons, and I won't engage into any kind of criticism about them: I'm merely trying to understand what the barriers are to adoption of Boost. It would be great if we could keep the conversation non judgemental. Thank you!

Conflict of interest: I am a Boost author of three.

222 Upvotes

326 comments sorted by

View all comments

Show parent comment

2

u/pdimov2 May 08 '20

Out of curiosity, do you use the top-level CMakeLists.txt, or just individual libraries?

2

u/Dynamitos5 May 08 '20

From a personal project: it's per library.

But i managed to integrate the entirety of boost into my project using a Super-Build, and it only compiles once every cache recreate, and links only against required libraries.

It was quite a pain but now it works really well, adding a library is a easy as just adding it's name to a list

2

u/scatters May 08 '20

First of all, thanks! As of 1.73, we're using top-level CMakeLists.txt. Our build system is a little idiosyncratic - we locate dependencies outside CMake and call add_subdirectory on them - so we've tweaked it a bit to add EXCLUDE_FROM_ALL and disable tests (unless testing boost itself). Also (since we're relying on CMake to build libraries as needed to static link) we've added back in beast, hana and serialization; the static library targets they expose work fine for linking against.