From c2be640c5971de8d508868fbbd5a87bc24c1c76f Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Thu, 26 Aug 2004 16:11:32 -0400 Subject: ENH: try to find fortran compiler before adding the test --- Source/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v0.12