فهرست منبع

Add append to write_file

Andy Cedilnik 23 سال پیش
والد
کامیت
ccafaa6bce

+ 1 - 1
Modules/CheckFunctionExists.cmake

@@ -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)

+ 1 - 1
Modules/CheckIncludeFile.cmake

@@ -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)

+ 3 - 2
Modules/CheckLibraryExists.cmake

@@ -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)

+ 2 - 1
Modules/CheckSizeOf.cmake

@@ -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)

+ 2 - 1
Modules/TestBigEndian.cmake

@@ -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)