cmake: drop custom CMakeOutput.log/CMakeError.log logs
CMake writes this information into `CMakeConfigureLog.yaml` automatically. Closes #14356
This commit is contained in:
parent
39b9ccea8d
commit
f87c3363ef
@ -55,15 +55,9 @@ macro(curl_internal_test CURL_TEST)
|
|||||||
if(${CURL_TEST})
|
if(${CURL_TEST})
|
||||||
set(${CURL_TEST} 1 CACHE INTERNAL "Curl test ${FUNCTION}")
|
set(${CURL_TEST} 1 CACHE INTERNAL "Curl test ${FUNCTION}")
|
||||||
message(STATUS "Performing Test ${CURL_TEST} - Success")
|
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()
|
else()
|
||||||
message(STATUS "Performing Test ${CURL_TEST} - Failed")
|
|
||||||
set(${CURL_TEST} "" CACHE INTERNAL "Curl test ${FUNCTION}")
|
set(${CURL_TEST} "" CACHE INTERNAL "Curl test ${FUNCTION}")
|
||||||
file(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log
|
message(STATUS "Performing Test ${CURL_TEST} - Failed")
|
||||||
"Performing Test ${CURL_TEST} failed with the following output:\n"
|
|
||||||
"${OUTPUT}\n")
|
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|||||||
@ -118,9 +118,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if false; then
|
if false; then
|
||||||
for log in CMakeFiles/CMakeConfigureLog.yaml CMakeFiles/CMakeOutput.log CMakeFiles/CMakeError.log; do
|
cat CMakeFiles/CMakeConfigureLog.yaml 2>/dev/null || true
|
||||||
[ -r "_bld/${log}" ] && cat "_bld/${log}"
|
|
||||||
done
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# build tests
|
# build tests
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user