Add a fortran test if there is a fortran compiler
This commit is contained in:
parent
9136914413
commit
74fb2c64b2
|
@ -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 OPTIONAL)
|
INCLUDE(${CMake_SOURCE_DIR}/Modules/CMakeDetermineFortranCompiler.cmake)
|
||||||
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
|
||||||
|
|
Loading…
Reference in New Issue