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)
|
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}")
|
MESSAGE(STATUS "Checking to see if CXX compiler acepts flag ${FLAGS}")
|
||||||
TRY_COMPILE(${VARIABLE}
|
TRY_COMPILE(${VARIABLE}
|
||||||
${CMAKE_BINARY_DIR}
|
${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 "
|
"Determining if the CXX compiler accepts the flag ${FLAGS} failed with "
|
||||||
"the following output:\n${OUTPUT}\n\n")
|
"the following output:\n${OUTPUT}\n\n")
|
||||||
ENDIF(${VARIABLE})
|
ENDIF(${VARIABLE})
|
||||||
ENDIF(DEFINED ${VARIABLE})
|
ENDIF(NOT DEFINED ${VARIABLE})
|
||||||
ENDMACRO(CHECK_CXX_ACCEPTS_FLAG)
|
ENDMACRO(CHECK_CXX_ACCEPTS_FLAG)
|
||||||
|
|
Loading…
Reference in New Issue