From 83c3bf7accfb1b28b95dca6225a9fadee3b09b2a Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Mon, 12 May 2008 18:11:42 -0400 Subject: [PATCH] STYLE: use IF(NOT ...) instead of IF() ELSE() ... ENDIF() Alex --- Modules/CMakeTestFortranCompiler.cmake | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Modules/CMakeTestFortranCompiler.cmake b/Modules/CMakeTestFortranCompiler.cmake index cc8c565e6..c4e639574 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)