summaryrefslogtreecommitdiffstats
path: root/Modules/TestCXXAcceptsFlag.cmake
diff options
context:
space:
mode:
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)