From 369d5f631ca2fd504d5c1a43418876b987b7e038 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Thu, 21 Nov 2002 13:00:51 -0500 Subject: spelling error --- Modules/CMakeBackwardCompatibilityCXX.cmake | 2 +- Modules/TestCXXAcceptsFlag.cmake | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Modules/CMakeBackwardCompatibilityCXX.cmake b/Modules/CMakeBackwardCompatibilityCXX.cmake index ccc2e33..0cbe148 100644 --- a/Modules/CMakeBackwardCompatibilityCXX.cmake +++ b/Modules/CMakeBackwardCompatibilityCXX.cmake @@ -2,7 +2,7 @@ # check for some ANSI flags in the CXX compiler if it is not gnu IF(NOT CMAKE_COMPILER_IS_GNUCXX) - INCLUDE(${CMAKE_ROOT}/Modules/TestCXXAcceptFlag.cmake) + INCLUDE(${CMAKE_ROOT}/Modules/TestCXXAcceptsFlag.cmake) SET(CMAKE_TRY_ANSI_CXX_FLAGS "") IF(CMAKE_SYSTEM MATCHES "IRIX.*") SET(CMAKE_TRY_ANSI_CXX_FLAGS "-LANG:std") diff --git a/Modules/TestCXXAcceptsFlag.cmake b/Modules/TestCXXAcceptsFlag.cmake index 1c6f351..09cf4b2 100644 --- a/Modules/TestCXXAcceptsFlag.cmake +++ b/Modules/TestCXXAcceptsFlag.cmake @@ -13,8 +13,10 @@ MACRO(CHECK_CXX_ACCEPTS_FLAG FLAGS VARIABLE) ${CMAKE_ROOT}/Modules/DummyCXXFile.cxx CMAKE_FLAGS -DCOMPILE_DEFINITIONS:STRING=${FLAGS} OUTPUT_VARIABLE OUTPUT) - IF(NOT ${VARIABLE}) + IF(${VARIABLE}) + MESSAGE(STATUS "Checking to see if CXX compiler acepts flag ${FLAGS} - yes") + ELSE(${VARIABLE}) WRITE_FILE(${PROJECT_BINARY_DIR}/CMakeError.log "Determining if the CXX compiler accepts the flag ${FLAGS} failed with the following output:\n" "${OUTPUT}\n" APPEND) - ENDIF(NOT ${VARIABLE}) + ENDIF(${VARIABLE}) ENDMACRO(CHECK_CXX_ACCEPTS_FLAG) -- cgit v0.12