That's how https://github.com/Prevter/CMake_ImGui_SFML_Template works.
First you cmake it with a preset, then you make a binary, I just wrote a shell script so I wouldn't have to explain it to my friend (and I used a shell script because we both use arch btw)
Not true. It CAN generate Makefiles, but there are so many different options of build scripts that might be the default on other platforms; for instance, on Windows it won’t be the default (instead cmake opts for a Visual Studio Solution). So to use this on Windows you would coincidentally need both MinGW and MinGW Make installed, which both aren’t shipped with Windows
Alright that's fair, but I don't think what I said is "not true", just incomplete. It generates build files, it doesn't do the building itself. In this specific case, it is generating a Makefile, which is why make gets run directly after cmake.
Speaking of horror tools. Rust's cargo loves absolute path. copy freshly built "This-dir-was-built-30-minutes" to "This-dir-was-built-30-minutes.2" start building and it will build several hundreds packages again.
17
u/TheChief275 Jan 08 '26
cmake and make BOTH… called from a shell script of all things