Re:Trying out C++20's modules with Clang and Make
by kova12 on Sunday October 15, 2023 @12:32PM
(#37891145)
There isn't one for c++ unfortunately
Re:Trying out C++20's modules with Clang and Make
by humanrebar on Sunday October 15, 2023 @12:48PM
(#37891300)
Don't know what qualifies as a Scotsman to you, but CMake is more modern than Makefile.
Re:Trying out C++20's modules with Clang and Make
by delta_p_delta_x on Sunday October 15, 2023 @01:31PM
(#37891666)
Yep, CMake. It has a weird string-typed syntax, and an even weirder function/function parameter syntax, but those are the most egregious issues.
Target-based CMake is extremely straightforward to get started with, and CMake + Ninja is also frequently significantly faster than the alternatives (autoconf tools).
It also easily hooks into package managers for C++ (Conan, vcpkg) and today, users can write C++ like they do JS or rust, with a `vcpkg.json` file, top-level CMakeLists.txt file, and pretty much that's it.
Re:Trying out C++20's modules with Clang and Make
by duped on Sunday October 15, 2023 @01:51PM
(#37891814)
Don't use make! Use a makefile generator!
(hope the sarcasm is obvious)
CMake is pretty good, so is Meson, so is Conan. All of them have some unfortunate shortcomings that make the C++ ecosystem hard to work in, but the biggest problem is diversity of build systems for dependencies.
No, please. If you're using C++20 modules, you also owe it to yourself to use a modern build system...