Add a fortran test if there is a fortran compiler
This commit is contained in:
parent
e803b32b89
commit
9136914413
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue