summaryrefslogtreecommitdiffstats
path: root/Source/CMakeLists.txt
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2004-08-26 20:34:06 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2004-08-26 20:34:06 (GMT)
commitca5e9e6415685c5127050f3e9a02ce9675ee0959 (patch)
tree320c85ea0e5318625ae275d844ecbe6aa9bb6344 /Source/CMakeLists.txt
parentc2be640c5971de8d508868fbbd5a87bc24c1c76f (diff)
downloadCMake-ca5e9e6415685c5127050f3e9a02ce9675ee0959.zip
CMake-ca5e9e6415685c5127050f3e9a02ce9675ee0959.tar.gz
CMake-ca5e9e6415685c5127050f3e9a02ce9675ee0959.tar.bz2
ENH: try to find fortran compiler before adding the test
Diffstat (limited to 'Source/CMakeLists.txt')
-rw-r--r--Source/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt
index 4d347f3..fe8acc6 100644
--- a/Source/CMakeLists.txt
+++ b/Source/CMakeLists.txt
@@ -621,6 +621,7 @@ IF(BUILD_TESTING)
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} )
+ MARK_AS_ADVANCED(CMAKE_Fortran_COMPILER_FULLPATH)
IF(CMAKE_Fortran_COMPILER_FULLPATH)
ADD_TEST(Fortran ${CMAKE_CTEST_COMMAND}
--build-and-test