Add a fortran test if there is a fortran compiler

This commit is contained in:
Bill Hoffman 2004-08-26 15:53:11 -04:00
parent e803b32b89
commit 9136914413
1 changed files with 1 additions and 1 deletions

View File

@ -618,7 +618,7 @@ IF(BUILD_TESTING)
ENDIF (CTEST_TEST_CTEST) ENDIF (CTEST_TEST_CTEST)
# see if we can find a fortran compiler on the machine # see if we can find a fortran compiler on the machine
# if so, add the fortran test and see if it works. # if so, add the fortran test and see if it works.
INCLUDE(CMakeDetermineFortranCompiler) INCLUDE(CMakeDetermineFortranCompiler OPTIONAL)
IF(CMAKE_Fortran_COMPILER_FULLPATH) IF(CMAKE_Fortran_COMPILER_FULLPATH)
ADD_TEST(Fortran ${CMAKE_CTEST_COMMAND} ADD_TEST(Fortran ${CMAKE_CTEST_COMMAND}
--build-and-test --build-and-test