BUG: Check for the variable first time

This commit is contained in:
Andy Cedilnik 2004-10-27 10:45:07 -04:00
parent a2b8c1fbcb
commit 235bf2547c
1 changed files with 2 additions and 2 deletions

View File

@ -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)