[cmake-developers] Ninja and optional support for Fortran
Marcus D. Hanwell
marcus.hanwell at kitware.com
Sun Oct 14 17:57:50 EDT 2012
Hi,
We use Eigen in a few projects, and it has optional support for
Fortran. It seems that the way it probes for a working Fortran
compiler causes the Ninja generator to error out.
CMake Error: The "Ninja" generator does not support the language "Fortran" yet.
-- The Fortran compiler identification is unknown
CMake Error at /usr/share/cmake-2.8/Modules/CMakeFortranInformation.cmake:27
(GET_FILENAME_COMPONENT):
get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
blas/CMakeLists.txt:9 (enable_language)
CMake Error: The "Ninja" generator does not support the language "Fortran" yet.
CMake Error at /usr/share/cmake-2.8/Modules/CMakeFortranInformation.cmake:27
(GET_FILENAME_COMPONENT):
get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
lapack/CMakeLists.txt:9 (enable_language)
I could suggest a new option for the project, but I was wondering if
anyone involved in the Ninja generator has thoughts on when (if)
Fortran will be supported, and more generally if there is a good way
to test for a language, such as Fortran, when building a project. I
haven't looked too deeply at their approach, but this is the only
thing that seems to be a problem for us in using Eigen (which is a C++
meta-template library with some optional Fortran code compiled and
wrapped when a working compiler is available).
Thanks,
Marcus
More information about the cmake-developers
mailing list