News for hackers. Stuff that matters.
Re:Show HN: Xmake, a modern C/C++ build utility by kstenerud on Tuesday April 09, 2019 @02:44AM (#19612369)
CMake feels a lot like C++89: Lots of things you can do, but there are problems:

* No standardization or opinionated design, so you can't share your work easily.

* No sane defaults, so your build system is always fragile, difficult to maintain, and done wrong.

* No best practices, so people keep making the same mistakes over and over.

* Misguided attempt to remain compatible with the steaming pile of legacy they've accumulated over the years.

* Bad documentation, so there's no way to learn how to do things better.

* Steep learning curve with limited payoff, so most people don't bother.

Meson does some of these things better. It's still not pretty, but it's nicer to use than CMake.

Re:Show HN: Xmake, a modern C/C++ build utility by ahartmetz on Tuesday April 09, 2019 @04:42AM (#19612830)
1 and 3 are not true anymore, the new canonical CMake way is targets with attached dependencies, header file search paths, compiler flags and possibly other things. Bad documentation - well yeah, it's specifically missing first-party best practices and howto documentation and the third-party documentation as well as really old first-party documentation in the CMake wiki often recommends bad old practices.

You forgot to mention that the language is awful (but that usually doesn't get in the way IME).

Re:Show HN: Xmake, a modern C/C++ build utility by waruqi on Tuesday April 09, 2019 @02:55AM (#19612408)
Xmake will be better, you can try it.