diff options
-rw-r--r-- | Modules/CMakeTestFortranCompiler.cmake | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Modules/CMakeTestFortranCompiler.cmake b/Modules/CMakeTestFortranCompiler.cmake index cc8c565..c4e6395 100644 --- a/Modules/CMakeTestFortranCompiler.cmake +++ b/Modules/CMakeTestFortranCompiler.cmake @@ -38,8 +38,7 @@ ENDIF(NOT CMAKE_Fortran_COMPILER_WORKS) IF(CMAKE_Fortran_COMPILER_WORKS) # Test for Fortran 90 support by using an f90-specific construct. - IF(DEFINED CMAKE_Fortran_COMPILER_SUPPORTS_F90) - ELSE(DEFINED CMAKE_Fortran_COMPILER_SUPPORTS_F90) + IF(NOT DEFINED CMAKE_Fortran_COMPILER_SUPPORTS_F90) MESSAGE(STATUS "Checking whether ${CMAKE_Fortran_COMPILER} supports Fortran 90") FILE(WRITE ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/testFortranCompilerF90.f90 " PROGRAM TESTFortran90 @@ -62,5 +61,5 @@ IF(CMAKE_Fortran_COMPILER_WORKS) "the following output:\n${OUTPUT}\n\n") SET(CMAKE_Fortran_COMPILER_SUPPORTS_F90 0 CACHE INTERNAL "") ENDIF(CMAKE_Fortran_COMPILER_SUPPORTS_F90) - ENDIF(DEFINED CMAKE_Fortran_COMPILER_SUPPORTS_F90) + ENDIF(NOT DEFINED CMAKE_Fortran_COMPILER_SUPPORTS_F90) ENDIF(CMAKE_Fortran_COMPILER_WORKS) |