summaryrefslogtreecommitdiffstats
path: root/Modules/TestCXXAcceptsFlag.cmake
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-10-27 14:45:07 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-10-27 14:45:07 (GMT)
commit235bf2547c40e9aba71ff289384be1ac8856f213 (patch)
tree0e34292b3c6b0d6f18710195bc7ef3ca0ad1b134 /Modules/TestCXXAcceptsFlag.cmake
parenta2b8c1fbcbe95783c6a1240a3461d35f375a16b6 (diff)
downloadCMake-235bf2547c40e9aba71ff289384be1ac8856f213.zip
CMake-235bf2547c40e9aba71ff289384be1ac8856f213.tar.gz
CMake-235bf2547c40e9aba71ff289384be1ac8856f213.tar.bz2
BUG: Check for the variable first time
Diffstat (limited to 'Modules/TestCXXAcceptsFlag.cmake')
-rw-r--r--Modules/TestCXXAcceptsFlag.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/TestCXXAcceptsFlag.cmake b/Modules/TestCXXAcceptsFlag.cmake
index 9b2f324..c7bb5b2 100644
--- a/Modules/TestCXXAcceptsFlag.cmake
+++ b/Modules/TestCXXAcceptsFlag.cmake
@@ -7,7 +7,7 @@
#
MACRO(CHECK_CXX_ACCEPTS_FLAG FLAGS VARIABLE)
- IF(DEFINED ${VARIABLE})
+ IF(NOT DEFINED ${VARIABLE})
MESSAGE(STATUS "Checking to see if CXX compiler acepts flag ${FLAGS}")
TRY_COMPILE(${VARIABLE}
${CMAKE_BINARY_DIR}
@@ -25,5 +25,5 @@ MACRO(CHECK_CXX_ACCEPTS_FLAG FLAGS VARIABLE)
"Determining if the CXX compiler accepts the flag ${FLAGS} failed with "
"the following output:\n${OUTPUT}\n\n")
ENDIF(${VARIABLE})
- ENDIF(DEFINED ${VARIABLE})
+ ENDIF(NOT DEFINED ${VARIABLE})
ENDMACRO(CHECK_CXX_ACCEPTS_FLAG)