summaryrefslogtreecommitdiffstats
path: root/Source/cmConfigureLog.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-01-30 15:37:33 (GMT)
committerBrad King <brad.king@kitware.com>2023-02-01 14:32:42 (GMT)
commit0a48d8fe5ccf8a44bcada7b528f4cf4dd591b18e (patch)
tree70ea637df099d555b01e8e73c9935563d0ea5c22 /Source/cmConfigureLog.cxx
parente86bebfd146c07d3a5eb34f9f35e133b6c3b805c (diff)
downloadCMake-0a48d8fe5ccf8a44bcada7b528f4cf4dd591b18e.zip
CMake-0a48d8fe5ccf8a44bcada7b528f4cf4dd591b18e.tar.gz
CMake-0a48d8fe5ccf8a44bcada7b528f4cf4dd591b18e.tar.bz2
ConfigureLog: De-duplicate event backtrace and check key generation
All event kinds have these fields, so centralize their implementation.
Diffstat (limited to 'Source/cmConfigureLog.cxx')
-rw-r--r--Source/cmConfigureLog.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmConfigureLog.cxx b/Source/cmConfigureLog.cxx
index 1b00b4f..1cf785a 100644
--- a/Source/cmConfigureLog.cxx
+++ b/Source/cmConfigureLog.cxx
@@ -136,7 +136,7 @@ void cmConfigureLog::EndObject()
--this->Indent;
}
-void cmConfigureLog::BeginEvent(std::string const& kind)
+void cmConfigureLog::BeginEvent(std::string const& kind, cmMakefile const& mf)
{
this->EnsureInit();
@@ -146,6 +146,8 @@ void cmConfigureLog::BeginEvent(std::string const& kind)
++this->Indent;
this->WriteValue("kind"_s, kind);
+ this->WriteBacktrace(mf);
+ this->WriteChecks(mf);
}
void cmConfigureLog::EndEvent()