diff options
Diffstat (limited to 'Modules/TestCXXAcceptsFlag.cmake')
-rw-r--r-- | Modules/TestCXXAcceptsFlag.cmake | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Modules/TestCXXAcceptsFlag.cmake b/Modules/TestCXXAcceptsFlag.cmake index 1c6f351..09cf4b2 100644 --- a/Modules/TestCXXAcceptsFlag.cmake +++ b/Modules/TestCXXAcceptsFlag.cmake @@ -13,8 +13,10 @@ MACRO(CHECK_CXX_ACCEPTS_FLAG FLAGS VARIABLE) ${CMAKE_ROOT}/Modules/DummyCXXFile.cxx CMAKE_FLAGS -DCOMPILE_DEFINITIONS:STRING=${FLAGS} OUTPUT_VARIABLE OUTPUT) - IF(NOT ${VARIABLE}) + IF(${VARIABLE}) + MESSAGE(STATUS "Checking to see if CXX compiler acepts flag ${FLAGS} - yes") + ELSE(${VARIABLE}) WRITE_FILE(${PROJECT_BINARY_DIR}/CMakeError.log "Determining if the CXX compiler accepts the flag ${FLAGS} failed with the following output:\n" "${OUTPUT}\n" APPEND) - ENDIF(NOT ${VARIABLE}) + ENDIF(${VARIABLE}) ENDMACRO(CHECK_CXX_ACCEPTS_FLAG) |