BUG: Check for the variable first time
This commit is contained in:
parent
a2b8c1fbcb
commit
235bf2547c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue