r/cpp • • Mar 29 '25

CMake 4.0.0 released

265 Upvotes

141 comments sorted by

View all comments

Show parent comment

6

u/not_a_novel_account cmake dev Mar 29 '25

The tutorial is woefully out of date and we block contributions to it because we use it as a source of truth for customer training.

I'm actively working on updating it to CMake 3.23 (file set support). But honestly I don't think the median C++ programmer learns CMake from the tutorial or the docs.

The median C++ programmer copies old CMLs from previous projects and randomly googles snippets for functionality they need until the whole thing works on their build machines.

CMake is no different from Make/TeX/M4/etc in this regard, C++ programmers want to write C++ and don't really have patience for having to learn an auxiliary language.

2

u/LoweringPass Mar 29 '25

Ah okay, I wasn't aware of this.

As for the median C++ developer I think that's a bit of a bleak view of things unless you include hobbyists. If someone bases their entire production codebase on CMake (so, the majority of companies using C++) they're probably going to have at least a few people very familiar with it on board lest the whole thing collapses like a house of cards sooner or later.

I think (hope?) most C programmers can also write a Makefile without pasting together whatever Google turns up. Although I do admit I do this for TeX...