2023-08-16 22:26:55 +00:00
|
|
|
Index: Source/cmMessenger.cxx
|
|
|
|
--- Source/cmMessenger.cxx.orig
|
|
|
|
+++ Source/cmMessenger.cxx
|
2024-05-26 03:08:12 +00:00
|
|
|
@@ -63,7 +63,7 @@ static bool printMessagePreamble(MessageType t, std::o
|
2023-08-16 22:26:55 +00:00
|
|
|
if (t == MessageType::FATAL_ERROR) {
|
|
|
|
msg << "CMake Error";
|
|
|
|
} else if (t == MessageType::INTERNAL_ERROR) {
|
|
|
|
- msg << "CMake Internal Error (please report a bug)";
|
|
|
|
+ msg << "CMake Internal Error";
|
|
|
|
} else if (t == MessageType::LOG) {
|
|
|
|
msg << "CMake Debug Log";
|
|
|
|
} else if (t == MessageType::DEPRECATION_ERROR) {
|
2024-05-26 03:08:12 +00:00
|
|
|
@@ -116,19 +116,6 @@ static void displayMessage(MessageType t, std::ostring
|
2023-08-16 22:26:55 +00:00
|
|
|
|
|
|
|
// Add a terminating blank line.
|
|
|
|
msg << "\n";
|
|
|
|
-
|
|
|
|
-#if !defined(CMAKE_BOOTSTRAP)
|
|
|
|
- // Add a C++ stack trace to internal errors.
|
|
|
|
- if (t == MessageType::INTERNAL_ERROR) {
|
|
|
|
- std::string stack = cmsys::SystemInformation::GetProgramStack(0, 0);
|
|
|
|
- if (!stack.empty()) {
|
|
|
|
- if (cmHasLiteralPrefix(stack, "WARNING:")) {
|
|
|
|
- stack = "Note:" + stack.substr(8);
|
|
|
|
- }
|
|
|
|
- msg << stack << "\n";
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-#endif
|
|
|
|
|
|
|
|
// Output the message.
|
|
|
|
cmMessageMetadata md;
|