summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/Configure
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-01-16 17:57:56 -0500
committerBrad King <brad.king@kitware.com>2023-01-19 13:27:51 -0500
commit317aac14efde7c8026c40b154cab237ceee4d0b0 (patch)
tree5900c0b7ddf6ceba9e1f8938dba8b9076e96c49d /Tests/RunCMake/Configure
parenteae1398d09e3d9f06c94213d0203b533c111606a (diff)
downloadcmake-317aac14efde7c8026c40b154cab237ceee4d0b0.tar.gz
cmake: Stop pointing users at logs on configure errors
Since commit 18e1bfbb3c (cmake: On configure error suggest looking at CMake*.log files, 2013-07-09, v2.8.12~210^2), when configuring a project fails, we print `See also .../CMake{Output,Error}.log` near the end of the output. This was intended to help users find failures in system and compiler inspection checks, but for normal project errors the messages may be misleading. The logs may contain incidental errors that are part of normal operation and do not need to be addressed by the user. Since commit f6ed2585e5 (Modules: Record system inspection steps in the configure log, 2023-01-16), CMake's builtin modules no longer log information to the old-style `CMake{Output,Error}.log` files anyway, so stop mentioning them. Fixes: #22131 Issue: #23200
Diffstat (limited to 'Tests/RunCMake/Configure')
-rw-r--r--Tests/RunCMake/Configure/ErrorLogs-result.txt1
-rw-r--r--Tests/RunCMake/Configure/ErrorLogs-stderr.txt4
-rw-r--r--Tests/RunCMake/Configure/ErrorLogs-stdout.txt3
-rw-r--r--Tests/RunCMake/Configure/ErrorLogs.cmake5
-rw-r--r--Tests/RunCMake/Configure/RunCMakeTest.cmake1
5 files changed, 0 insertions, 14 deletions
diff --git a/Tests/RunCMake/Configure/ErrorLogs-result.txt b/Tests/RunCMake/Configure/ErrorLogs-result.txt
deleted file mode 100644
index d00491fd7e..0000000000
--- a/Tests/RunCMake/Configure/ErrorLogs-result.txt
+++ /dev/null
@@ -1 +0,0 @@
-1
diff --git a/Tests/RunCMake/Configure/ErrorLogs-stderr.txt b/Tests/RunCMake/Configure/ErrorLogs-stderr.txt
deleted file mode 100644
index ec8c8c2081..0000000000
--- a/Tests/RunCMake/Configure/ErrorLogs-stderr.txt
+++ /dev/null
@@ -1,4 +0,0 @@
-CMake Error at ErrorLogs.cmake:[0-9]+ \(message\):
- Some error!
-Call Stack \(most recent call first\):
- CMakeLists.txt:[0-9]+ \(include\)
diff --git a/Tests/RunCMake/Configure/ErrorLogs-stdout.txt b/Tests/RunCMake/Configure/ErrorLogs-stdout.txt
deleted file mode 100644
index c467b6204f..0000000000
--- a/Tests/RunCMake/Configure/ErrorLogs-stdout.txt
+++ /dev/null
@@ -1,3 +0,0 @@
--- Configuring incomplete, errors occurred!
-See also ".*/Tests/RunCMake/Configure/ErrorLogs-build/CMakeFiles/CMakeOutput\.log"\.
-See also ".*/Tests/RunCMake/Configure/ErrorLogs-build/CMakeFiles/CMakeError\.log"\.
diff --git a/Tests/RunCMake/Configure/ErrorLogs.cmake b/Tests/RunCMake/Configure/ErrorLogs.cmake
deleted file mode 100644
index 3a9d107bda..0000000000
--- a/Tests/RunCMake/Configure/ErrorLogs.cmake
+++ /dev/null
@@ -1,5 +0,0 @@
-file(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
- "Some detailed output information!\n")
-file(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log
- "Some detailed error information!\n")
-message(SEND_ERROR "Some error!")
diff --git a/Tests/RunCMake/Configure/RunCMakeTest.cmake b/Tests/RunCMake/Configure/RunCMakeTest.cmake
index 750fa3c2bb..df6849e9c2 100644
--- a/Tests/RunCMake/Configure/RunCMakeTest.cmake
+++ b/Tests/RunCMake/Configure/RunCMakeTest.cmake
@@ -3,7 +3,6 @@ include(RunCMake)
run_cmake(ContinueAfterError)
run_cmake(CopyFileABI)
run_cmake(CustomTargetAfterError)
-run_cmake(ErrorLogs)
# Use a single build tree for a few tests without cleaning.
set(RunCMake_TEST_BINARY_DIR ${RunCMake_BINARY_DIR}/RerunCMake-build)