Ninja v1.10.0 fixed significant issues with CMake + Fortran. Ninja uses GitHub Actions to build and distribute binaries.
If it’s necessary to compile Ninja from source, Ninja is quick to compile by:
python configure.py --bootstrap
or simply use CMake as usual:
cmake -B build cmake --build build