Is there any flag to suppress cmake rerun when running ninja?
Background: I'm running gcc within msys2 mingw64 environment, and somehow broke the build chain cmake - make and cmake - ninja. Ninja always complains about the path
ninja: error: FindFirstFileExA(c:/building/msys64c:/building/msys64/mingw64/lib): The filename, directory name, or volume label syntax is incorrect.
I was trying to patch it via search and replace the path inside the build.ninja file, but when I run ninja to build, it automatically reruns cmake to create unpatched build.ninja file again.
Thanks for any idea how to progress.