diff options
author | Brad King <brad.king@kitware.com> | 2006-06-28 21:15:23 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-06-28 21:15:23 (GMT) |
commit | c02e2b7fddc7f81d3e494bac3271e3c4dbe67021 (patch) | |
tree | 9a78cf263a574f50baa214bab931b89fe67e4503 /Utilities/cmxmlrpc | |
parent | ba539d9605e04ab01bab207d5df79ef985736ced (diff) | |
download | CMake-c02e2b7fddc7f81d3e494bac3271e3c4dbe67021.zip CMake-c02e2b7fddc7f81d3e494bac3271e3c4dbe67021.tar.gz CMake-c02e2b7fddc7f81d3e494bac3271e3c4dbe67021.tar.bz2 |
BUG: Fix usage of FILE(APPEND) mode.
Diffstat (limited to 'Utilities/cmxmlrpc')
-rw-r--r-- | Utilities/cmxmlrpc/CMake/TryCompileFromSource.cmake | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Utilities/cmxmlrpc/CMake/TryCompileFromSource.cmake b/Utilities/cmxmlrpc/CMake/TryCompileFromSource.cmake index b3367c8..1e1006b 100644 --- a/Utilities/cmxmlrpc/CMake/TryCompileFromSource.cmake +++ b/Utilities/cmxmlrpc/CMake/TryCompileFromSource.cmake @@ -30,17 +30,17 @@ MACRO(TRY_COMPILE_FROM_SOURCE SOURCE VAR) IF(${VAR}) SET(${VAR} 1 CACHE INTERNAL "Test ${FUNCTION}") MESSAGE(STATUS "Performing Test ${VAR} - Success") - FILE(WRITE ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log + FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log "Performing C SOURCE FILE Test ${VAR} succeded with the following output:\n" "${OUTPUT}\n" - "Source file was:\n${src}\n" APPEND) + "Source file was:\n${src}\n") ELSE(${VAR}) MESSAGE(STATUS "Performing Test ${VAR} - Failed") SET(${VAR} "" CACHE INTERNAL "Test ${FUNCTION}") - FILE(WRITE ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log + FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log "Performing C SOURCE FILE Test ${VAR} failed with the following output:\n" "${OUTPUT}\n" - "Source file was:\n${src}\n" APPEND) + "Source file was:\n${src}\n") ENDIF(${VAR}) ENDIF("${VAR}" MATCHES "^${VAR}$" OR "${VAR}" MATCHES "UNKNOWN") ENDMACRO(TRY_COMPILE_FROM_SOURCE) |