[CMake] Fortran support for ninja

Kyle Edwards kyle.edwards at kitware.com
Wed Aug 7 15:13:03 EDT 2019


On Wed, 2019-08-07 at 18:10 +0000, Deij-van Rijswijk, Menno wrote:
> Hello,
> 
> Today I was trying to use the Ninja generator for CMake on a project
> containing Fortran and C++ source files. I got the error that ninja
> is not supported with CMake unless a special version of ninja is used
> that supports fortran. 
> 
> I got the source for this version from https://github.com/Kitware/nin
> ja , built it and put the resulting binary in the PATH.
> 
> I keep getting the error that ninja is not supported, and for some
> reason it insists that the ninja version is 1.7.2, while the version
> installed is 1.9.0.

It sounds like it's finding another Ninja installed elsewhere on the
system. Please try the following to see which Ninja CMake is finding:

$ grep CMAKE_MAKE_PROGRAM:FILEPATH= CMakeCache.txt

Kyle


More information about the CMake mailing list