diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-07-11 18:14:03 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-07-11 18:14:03 (GMT) |
commit | a17587c24449c2ae12fd0aaccf9d2ba36838eead (patch) | |
tree | 9698a8bb6d3c083cbd58a93496cbebd2da656166 /Modules/TestCXXAcceptsFlag.cmake | |
parent | 958987c27ffe95733e01c5d2313758922e60de74 (diff) | |
download | CMake-a17587c24449c2ae12fd0aaccf9d2ba36838eead.zip CMake-a17587c24449c2ae12fd0aaccf9d2ba36838eead.tar.gz CMake-a17587c24449c2ae12fd0aaccf9d2ba36838eead.tar.bz2 |
ENH: Replace WRITE_FILE with FILE(WRITE and FILE(APPEND. Replace MAKE_DIRECTORY with FILE(MAKE_DIRECTORY, replace STRING(ASCII things
Diffstat (limited to 'Modules/TestCXXAcceptsFlag.cmake')
-rw-r--r-- | Modules/TestCXXAcceptsFlag.cmake | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/Modules/TestCXXAcceptsFlag.cmake b/Modules/TestCXXAcceptsFlag.cmake index 019d289..69e2b42 100644 --- a/Modules/TestCXXAcceptsFlag.cmake +++ b/Modules/TestCXXAcceptsFlag.cmake @@ -7,16 +7,16 @@ # MACRO(CHECK_CXX_ACCEPTS_FLAG FLAGS VARIABLE) - MESSAGE(STATUS "Checking to see if CXX compiler acepts flag ${FLAGS}") - TRY_COMPILE(${VARIABLE} - ${CMAKE_BINARY_DIR} - ${CMAKE_ROOT}/Modules/DummyCXXFile.cxx - CMAKE_FLAGS -DCOMPILE_DEFINITIONS:STRING=${FLAGS} - OUTPUT_VARIABLE OUTPUT) - IF(${VARIABLE}) - MESSAGE(STATUS "Checking to see if CXX compiler acepts flag ${FLAGS} - yes") - ELSE(${VARIABLE}) - WRITE_FILE(${CMAKE_BINARY_DIR}/CMakeError.log - "Determining if the CXX compiler accepts the flag ${FLAGS} failed with the following output:\n" "${OUTPUT}\n" APPEND) - ENDIF(${VARIABLE}) + MESSAGE(STATUS "Checking to see if CXX compiler acepts flag ${FLAGS}") + TRY_COMPILE(${VARIABLE} + ${CMAKE_BINARY_DIR} + ${CMAKE_ROOT}/Modules/DummyCXXFile.cxx + CMAKE_FLAGS -DCOMPILE_DEFINITIONS:STRING=${FLAGS} + OUTPUT_VARIABLE OUTPUT) + IF(${VARIABLE}) + MESSAGE(STATUS "Checking to see if CXX compiler acepts flag ${FLAGS} - yes") + ELSE(${VARIABLE}) + FILE(APPEND ${CMAKE_BINARY_DIR}/CMakeError.log + "Determining if the CXX compiler accepts the flag ${FLAGS} failed with the following output:\n${OUTPUT}\n") + ENDIF(${VARIABLE}) ENDMACRO(CHECK_CXX_ACCEPTS_FLAG) |