summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-12-10 17:16:38 (GMT)
committerBrad King <brad.king@kitware.com>2009-12-10 17:16:38 (GMT)
commit55275e017dfdd2826e2791ac16d29ea0cdfc55ac (patch)
tree37190e6c53b7547b362e5da3b88be38e164850a9 /Modules
parentfaf6d82bd6b6d31887f1f909d3b46b5fd130a435 (diff)
downloadCMake-55275e017dfdd2826e2791ac16d29ea0cdfc55ac.zip
CMake-55275e017dfdd2826e2791ac16d29ea0cdfc55ac.tar.gz
CMake-55275e017dfdd2826e2791ac16d29ea0cdfc55ac.tar.bz2
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.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/CMakeDetermineFortranCompiler.cmake3
1 files changed, 0 insertions, 3 deletions
diff --git a/Modules/CMakeDetermineFortranCompiler.cmake b/Modules/CMakeDetermineFortranCompiler.cmake
index 8adacd6..44e45d8 100644
--- a/Modules/CMakeDetermineFortranCompiler.cmake
+++ b/Modules/CMakeDetermineFortranCompiler.cmake
@@ -62,9 +62,6 @@ IF(NOT CMAKE_Fortran_COMPILER)
# The order is 95 or newer compilers first, then 90,
# 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
pgf90 xlf90 epcf90 fort77 frt pgf77 xlf fl32 af77 g77 f77