summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2008-05-12 22:11:42 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2008-05-12 22:11:42 (GMT)
commit83c3bf7accfb1b28b95dca6225a9fadee3b09b2a (patch)
tree6148f63000f48246be8305932f2d315c95ec65ff
parent771bdb7ef84b99f29b87c5424a78daf1d49c9dc7 (diff)
downloadCMake-83c3bf7accfb1b28b95dca6225a9fadee3b09b2a.zip
CMake-83c3bf7accfb1b28b95dca6225a9fadee3b09b2a.tar.gz
CMake-83c3bf7accfb1b28b95dca6225a9fadee3b09b2a.tar.bz2
STYLE: use IF(NOT ...) instead of IF() ELSE() ... ENDIF()
Alex
-rw-r--r--Modules/CMakeTestFortranCompiler.cmake5
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)