BUG: Fix usage of FILE(APPEND) mode.
This commit is contained in:
parent
ba539d9605
commit
c02e2b7fdd
|
@ -30,17 +30,17 @@ MACRO(TRY_COMPILE_FROM_SOURCE SOURCE VAR)
|
||||||
IF(${VAR})
|
IF(${VAR})
|
||||||
SET(${VAR} 1 CACHE INTERNAL "Test ${FUNCTION}")
|
SET(${VAR} 1 CACHE INTERNAL "Test ${FUNCTION}")
|
||||||
MESSAGE(STATUS "Performing Test ${VAR} - Success")
|
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"
|
"Performing C SOURCE FILE Test ${VAR} succeded with the following output:\n"
|
||||||
"${OUTPUT}\n"
|
"${OUTPUT}\n"
|
||||||
"Source file was:\n${src}\n" APPEND)
|
"Source file was:\n${src}\n")
|
||||||
ELSE(${VAR})
|
ELSE(${VAR})
|
||||||
MESSAGE(STATUS "Performing Test ${VAR} - Failed")
|
MESSAGE(STATUS "Performing Test ${VAR} - Failed")
|
||||||
SET(${VAR} "" CACHE INTERNAL "Test ${FUNCTION}")
|
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"
|
"Performing C SOURCE FILE Test ${VAR} failed with the following output:\n"
|
||||||
"${OUTPUT}\n"
|
"${OUTPUT}\n"
|
||||||
"Source file was:\n${src}\n" APPEND)
|
"Source file was:\n${src}\n")
|
||||||
ENDIF(${VAR})
|
ENDIF(${VAR})
|
||||||
ENDIF("${VAR}" MATCHES "^${VAR}$" OR "${VAR}" MATCHES "UNKNOWN")
|
ENDIF("${VAR}" MATCHES "^${VAR}$" OR "${VAR}" MATCHES "UNKNOWN")
|
||||||
ENDMACRO(TRY_COMPILE_FROM_SOURCE)
|
ENDMACRO(TRY_COMPILE_FROM_SOURCE)
|
||||||
|
|
Loading…
Reference in New Issue