mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-08 15:19:51 -05:00
ConfigureLog: De-duplicate event backtrace and check key generation
All event kinds have these fields, so centralize their implementation.
This commit is contained in:
@@ -74,9 +74,7 @@ void WriteMessageEvent(cmConfigureLog& log, cmMakefile const& mf,
|
||||
static const std::vector<unsigned long> LogVersionsWithMessageV1{ 1 };
|
||||
|
||||
if (log.IsAnyLogVersionEnabled(LogVersionsWithMessageV1)) {
|
||||
log.BeginEvent("message-v1");
|
||||
log.WriteBacktrace(mf);
|
||||
log.WriteChecks(mf);
|
||||
log.BeginEvent("message-v1", mf);
|
||||
log.WriteLiteralTextBlock("message"_s, message);
|
||||
log.EndEvent();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user