4 ms·
> Having developers remember to do -DCMAKE_XXX half a dozen times for every build wasn’t realistic so we scripted it because CMake didn’t support the idea that
by mathstuf 4y ago
> Having developers remember to do -DCMAKE_XXX half a dozen times for every build wasn’t realistic so we scripted it because CMake didn’t support the idea that a toolchain file wasn’t passed on the command line (that I’m aware of).
You're supposed to use `-DCMAKE_TOOLCHAIN_FILE` to specify how to use a toolchain like this.
> I also disliked that it generated recursive Makefiles.
It doesn't make them in the "recursive make considered harmful" way. It is a static 3-depth graph (UI -> target graph -> target rules). Or you could use the Ninja generator.
FD: CMake developer