Why is this the best build tool the C/C++ field can manage? The scripting system sucks, and unless you use Visual Studio the project files it spits out are glorified wrappers around makefiles.
Yet somehow, this thing is still better than everything else out there.
>>59104346
The problem is that nobody has yet realized that you'd want a library DSL instead of a real grammatical DSL, because at the end of the day you'll need that flexibility.
>>59104346
>>59104379
Oh, and if you still want to go for a declarative DSL, there's meson.
>>59104346
false, the best is GNU Make
>>59104450
CMake generates GNU Makefiles
>>59104596
I know
>>59104395
>meson
cool, yet another build system that assumes that windows users want to bother with the command line and an external scripting language dependency.
>>59105520
>cool, yet another build system that assumes that windows users want to bother with the command line and an external scripting language dependency.
As soon as your project becomes non-trivial, you will have to do that anyway.
I love CMake.
What's could actually be done better?
>>59105659
It could be a library instead of being its own halfassed DSL #994859 for a task that requires an actual programming language as soon as you get over fizzbuzzing.
>>59105563
It is not a forgone conclusion.
>>59105659
The domain specific language desperately wants to be declarative, so when you finally get to a point where that's no longer suitable, you quickly run into trouble. Trouble that can be overcame if you put in the time, but trouble nonetheless.