summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-11-21 18:00:51 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-11-21 18:00:51 (GMT)
commit369d5f631ca2fd504d5c1a43418876b987b7e038 (patch)
tree0f53b81c82b2871abd9b01a23f83011d7947702c
parent9a6c95fcea52bd1b5b4930fdac0a48088e55273b (diff)
downloadCMake-369d5f631ca2fd504d5c1a43418876b987b7e038.zip
CMake-369d5f631ca2fd504d5c1a43418876b987b7e038.tar.gz
CMake-369d5f631ca2fd504d5c1a43418876b987b7e038.tar.bz2
spelling error
-rw-r--r--Modules/CMakeBackwardCompatibilityCXX.cmake2
-rw-r--r--Modules/TestCXXAcceptsFlag.cmake6
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)