Add append to write_file
This commit is contained in:
parent
91bd207812
commit
ccafaa6bce
|
@ -19,6 +19,6 @@ MACRO(CHECK_FUNCTION_EXISTS FUNCTION VARIABLE)
|
|||
SET(${VARIABLE} "" CACHE INTERNAL "Have function ${LIBRARY}")
|
||||
WRITE_FILE(${PROJECT_BINARY_DIR}/CMakeError.log
|
||||
"Determining if the function ${FUNCTION} exists failed with the following output:\n"
|
||||
"${OUTPUT}\n")
|
||||
"${OUTPUT}\n" APPEND)
|
||||
ENDIF(${VARIABLE})
|
||||
ENDMACRO(CHECK_FUNCTION_EXISTS)
|
||||
|
|
|
@ -21,6 +21,6 @@ MACRO(CHECK_INCLUDE_FILE INCLUDE VARIABLE)
|
|||
WRITE_FILE(${PROJECT_BINARY_DIR}/CMakeError.log
|
||||
"Determining if the include file ${INCLUDE} "
|
||||
"exists failed with the following output:\n"
|
||||
"${OUTPUT}\n")
|
||||
"${OUTPUT}\n" APPEND)
|
||||
ENDIF(${VARIABLE})
|
||||
ENDMACRO(CHECK_INCLUDE_FILE)
|
||||
|
|
|
@ -23,7 +23,8 @@ MACRO(CHECK_LIBRARY_EXISTS LIBRARY FUNCTION LOCATION VARIABLE)
|
|||
ELSE(${VARIABLE})
|
||||
SET(${VARIABLE} "" CACHE INTERNAL "Have library ${LIBRARY}")
|
||||
WRITE_FILE(${PROJECT_BINARY_DIR}/CMakeError.log
|
||||
"Determining if the function ${FUNCTION} exists in the ${LIBRARY} failed with the following output:\n"
|
||||
"${OUTPUT}\n")
|
||||
"Determining if the function ${FUNCTION} exists in the ${LIBRARY} "
|
||||
"failed with the following output:\n"
|
||||
"${OUTPUT}\n" APPEND)
|
||||
ENDIF(${VARIABLE})
|
||||
ENDMACRO(CHECK_LIBRARY_EXISTS)
|
||||
|
|
|
@ -22,6 +22,7 @@ MACRO(CHECK_TYPE_SIZE TYPE VARIABLE)
|
|||
OUTPUT_VARIABLE OUTPUT)
|
||||
IF(NOT HAVE_${VARIABLE})
|
||||
WRITE_FILE(${PROJECT_BINARY_DIR}/CMakeError.log
|
||||
"Determining size of ${TYPE} failed with the following output:\n${OUTPUT}\n")
|
||||
"Determining size of ${TYPE} failed with the following output:\n${OUTPUT}\n"
|
||||
APPEND)
|
||||
ENDIF(NOT HAVE_${VARIABLE})
|
||||
ENDMACRO(CHECK_TYPE_SIZE)
|
||||
|
|
|
@ -11,6 +11,7 @@ MACRO(TEST_BIG_ENDIAN VARIABLE)
|
|||
OUTPUT_VARIABLE OUTPUT)
|
||||
IF(NOT HAVE_${VARIABLE})
|
||||
WRITE_FILE(${PROJECT_BINARY_DIR}/CMakeError.log
|
||||
"Determining the endianes of the system failed with the following output:\n${OUTPUT}\n")
|
||||
"Determining the endianes of the system failed with the following output:\n${OUTPUT}\n"
|
||||
APPEND)
|
||||
ENDIF(NOT HAVE_${VARIABLE})
|
||||
ENDMACRO(TEST_BIG_ENDIAN)
|
||||
|
|
Loading…
Reference in New Issue