r/cpp • • Apr 12 '26

CMake Past, Present, and Future - Bill Hoffman, Kitware [29m25s]

https://www.youtube.com/watch?v=cD-JgncskTQ
69 Upvotes

134 comments sorted by

View all comments

Show parent comment

4

u/AlexReinkingYale Apr 12 '26

I don't understand the fixation on Turing completeness in build systems discussions. There's no reason to believe it says anything about the quality of the build system. You can write arbitrarily complicated sub-Turing-complete programs. For instance, someone wrote a ray tracer in Meson, following the infamous CMake example.

9

u/not_a_novel_account cmake dev Apr 12 '26 edited Apr 13 '26

You can, but developers don't want to. Some developers want to write loops. Such is life.

Build description is no different than code. Why do some developers like C++ and others Haskell? It's a personal thing, what you feel is most elegant, flexible, and importantly best suited to the project at hand.

Because it's my day job, personally I can write correct, cross-platform C++ builds in basically every major cross-platform build language available without much effort. Any choice I make between them is entirely preference and suitability based.

If we got in at the ground floor like Cargo, had mandated one-and-only-one way from the beginning, things would be different. That time is long passed, so the only answer for the broader ecosystem is to make systems interoperable.

6

u/revenantname Apr 13 '26

I don't understand the fixation on Turing completeness in build systems discussions.

Adding to not_a_novel_account's discussion, even the most static declarative build systems out there still often fall back to imperative code for certain things. To use Cargo as an example, many packages I've seen have a build.rs in addition to the standard toml and lock files. Granted this is at least being written in the target language and rust is also more ergonomic than C++ in the buildsystem context.

I've personally got my eye on tools like Nix - there's a good mix of concepts that allows for the flexibility when you need it. It's the best of both worlds if you can stomach the Nix language.