]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cmake: drop custom `CMakeOutput.log`/`CMakeError.log` logs
authorViktor Szakats <commit@vsz.me>
Fri, 2 Aug 2024 11:38:14 +0000 (13:38 +0200)
committerViktor Szakats <commit@vsz.me>
Fri, 2 Aug 2024 23:15:45 +0000 (01:15 +0200)
CMake writes this information into `CMakeConfigureLog.yaml`
automatically.

Closes #14356

CMake/Macros.cmake
appveyor.sh

index d5439fcc04c00fbcca87a0fff44b985e837e3cbc..a8664baa4b1f6b36d47f142362330721235a01ed 100644 (file)
@@ -55,15 +55,9 @@ macro(curl_internal_test CURL_TEST)
     if(${CURL_TEST})
       set(${CURL_TEST} 1 CACHE INTERNAL "Curl test ${FUNCTION}")
       message(STATUS "Performing Test ${CURL_TEST} - Success")
-      file(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
-        "Performing Test ${CURL_TEST} passed with the following output:\n"
-        "${OUTPUT}\n")
     else()
-      message(STATUS "Performing Test ${CURL_TEST} - Failed")
       set(${CURL_TEST} "" CACHE INTERNAL "Curl test ${FUNCTION}")
-      file(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log
-        "Performing Test ${CURL_TEST} failed with the following output:\n"
-        "${OUTPUT}\n")
+      message(STATUS "Performing Test ${CURL_TEST} - Failed")
     endif()
   endif()
 endmacro()
index 9e5dac84c4002ae5e8fb9929e2ac38a86c012cb3..a2925e647a9cff6c1fb3d4b867be6e0fc2325c1e 100644 (file)
@@ -118,9 +118,7 @@ else
 fi
 
 if false; then
-  for log in CMakeFiles/CMakeConfigureLog.yaml CMakeFiles/CMakeOutput.log CMakeFiles/CMakeError.log; do
-    [ -r "_bld/${log}" ] && cat "_bld/${log}"
-  done
+  cat CMakeFiles/CMakeConfigureLog.yaml 2>/dev/null || true
 fi
 
 # build tests