[Cmake-commits] [cmake-commits] king committed CMakeDetermineFortranCompiler.cmake 1.27 1.28

cmake-commits at cmake.org cmake-commits at cmake.org
Thu Dec 10 12:16:37 EST 2009


Update of /cvsroot/CMake/CMake/Modules
In directory public:/mounts/ram/cvs-serv9288/Modules

Modified Files:
	CMakeDetermineFortranCompiler.cmake 
Log Message:
New decision method to enable Fortran tests

CMake does not enable Fortran for its own build, but it needs to find a
Fortran compiler to know if it is possible to enable Fortran tests.
Previously we searched for a hard-coded list of Fortran compilers which
was duplicated from the CMakeDetermineFortranCompiler.cmake module.  We
now run CMake on a small test project that enables the Fortran language
and reports the compiler it found.  This represents a more realistic
check of whether the Fortran tests will be able to find a compiler.


Index: CMakeDetermineFortranCompiler.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/CMakeDetermineFortranCompiler.cmake,v
retrieving revision 1.27
retrieving revision 1.28
diff -C 2 -d -r1.27 -r1.28
*** CMakeDetermineFortranCompiler.cmake	28 Sep 2009 15:46:47 -0000	1.27
--- CMakeDetermineFortranCompiler.cmake	10 Dec 2009 17:16:33 -0000	1.28
***************
*** 63,69 ****
      #  then 77 or older compilers, gnu is always last in the group,
      #  so if you paid for a compiler it is picked by default.
-     # NOTE for testing purposes this list is DUPLICATED in
-     # CMake/Source/CMakeLists.txt, IF YOU CHANGE THIS LIST,
-     # PLEASE UPDATE THAT FILE AS WELL!
      SET(CMAKE_Fortran_COMPILER_LIST
        ifort ifc efc f95 pgf95 lf95 xlf95 fort gfortran gfortran-4 g95 f90
--- 63,66 ----



More information about the Cmake-commits mailing list