[CMake] CMake C++ and Fortran mixed language project fails

Michael Stephenson mbs at iprovo.net
Thu Feb 2 22:18:09 EST 2006


I have a mixed language C++ and Fortran project that works on Linux. I'm now trying to run it on Windows. CMakeSetup generates the following errors:

CMakeError: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_Fortran_FLAGS_RELEASE

This message is repeated for CMAKE_Fortran_FLAGS_MINSIZEREL, CMAKE_Fortran_FLAGS_DEBUG, and CMAKE_Fortran_FLAGS_RELWITHDEBINFO.

I then get this error message:

CMakeError: Internal CMake error, TryCompile generation of cmake failed.

and finally:

The Fortran compiler "ifort.exe" is not able to compile a simple test program.
It fails with the following output:
(blank)

CMake will not be able to correctly generate this project.

Since CMake is able to find the Fortran compiler, why doesn't it set the *Release, etc. flags and compile the test program.

--Mike Stephenson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20060202/067a50d9/attachment.htm


More information about the CMake mailing list