Zero to CMake: A beginner's guide to why CMake works
buchanan.one
buchanan.one
cd build && make
by not using instead cmake --build build/
and then use all the other options available to the cmake --build command. Think of CMake as your multi-platform build tool, not just a "makefile generator".also you might want to consider using
make --directory build/
which of course leaves the user in the original place, and as such is a bit more ergonomic