summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2004-08-26 20:11:32 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2004-08-26 20:11:32 (GMT)
commitc2be640c5971de8d508868fbbd5a87bc24c1c76f (patch)
tree9144a2d20e119f3a10fc0683ba27a5322e632d9e
parent50045b7dac7e9f86d5680225583727836117b8e3 (diff)
downloadCMake-c2be640c5971de8d508868fbbd5a87bc24c1c76f.zip
CMake-c2be640c5971de8d508868fbbd5a87bc24c1c76f.tar.gz
CMake-c2be640c5971de8d508868fbbd5a87bc24c1c76f.tar.bz2
ENH: try to find fortran compiler before adding the test
-rw-r--r--Source/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt
index 7c5a1d8..4d347f3 100644
--- a/Source/CMakeLists.txt
+++ b/Source/CMakeLists.txt
@@ -618,7 +618,9 @@ IF(BUILD_TESTING)
ENDIF (CTEST_TEST_CTEST)
# see if we can find a fortran compiler on the machine
# if so, add the fortran test and see if it works.
-# INCLUDE(${CMake_SOURCE_DIR}/Modules/CMakeDetermineFortranCompiler.cmake)
+ SET(CMAKE_Fortran_COMPILER_LIST ifort ifc efc f95 pgf95
+ lf95 xlf95 fort gfortran f90 pgf90 xlf90 epcf90 f77 fort77 frt pgf77 xlf fl32 af77 g77 )
+ FIND_PROGRAM(CMAKE_Fortran_COMPILER_FULLPATH NAMES ${CMAKE_Fortran_COMPILER_LIST} )
IF(CMAKE_Fortran_COMPILER_FULLPATH)
ADD_TEST(Fortran ${CMAKE_CTEST_COMMAND}
--build-and-test