My CMake + beman.exemplar Talk

It looks like they posted it:

@vito.gamberini It looks like one of the YouTube comments is complaining about how CMake FILE_SETs handle header-only libraries. Have you seen that before?

3 Likes

They’re simply wrong. Not interesting wrong, not niche misunderstanding wrong, not even outdated knowledge wrong. They’re “2 + 2 = 5” wrong

1 Like

Having flipped the talk on in ‘the background yesterday’, I might be wrong – but I think only header file sets where shown on the slides (see minute 57 or so). Perhaps that’s the confusion?

btw: It’s scary that I’d already forgotten 90% of the talk even having been present – I guess that’s bc cmake stuff at ‘the day job’ is usually that routine adding files, etc.

The most generous interpretation is that they don’t understand how install() interacts with FILE_SET. But CMake throws big “you must say install(FILE_SET)" errors if you ever make the attempt.

CMake, like C++, is an expert tool. That’s maybe not a good thing, not something to be super proud of or whatever, but it’s true. Like any expert tool, there are a countless people who hold it wrong and then complain it doesn’t work. Complaints should largely be interpreted through this lens. Someone who is complaining, “X doesn’t work” is usually saying “X is poorly communicated and arcane”.

I didn’t cover C++ module file sets, no. It seemed premature for a talk entitled Pragmatic CMake to cover building and shipping C++ modules. I would expect more practical experience first.

Clearly, no experts commented on YouTube so far.