summaryrefslogtreecommitdiffstats
path: root/Source/cmFileAPIConfigureLog.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-01-16 19:32:36 (GMT)
committerBrad King <brad.king@kitware.com>2023-01-18 16:37:11 (GMT)
commita78cba51978fbc805993604767c1902a249482ff (patch)
treeb4df0181bf56b68135e52c3745f60ab10c9d229c /Source/cmFileAPIConfigureLog.cxx
parent645671d36f5cf0fa411d98a637f4edbc3d896c57 (diff)
downloadCMake-a78cba51978fbc805993604767c1902a249482ff.zip
CMake-a78cba51978fbc805993604767c1902a249482ff.tar.gz
CMake-a78cba51978fbc805993604767c1902a249482ff.tar.bz2
message: Add CONFIGURE_LOG mode to record a message in the configure log
Provide a replacement for `file(APPEND .../CMake{Output,Error}.log)` that records messages in the configure log. Issue: #23200
Diffstat (limited to 'Source/cmFileAPIConfigureLog.cxx')
-rw-r--r--Source/cmFileAPIConfigureLog.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmFileAPIConfigureLog.cxx b/Source/cmFileAPIConfigureLog.cxx
index 50189cb..ad0997c 100644
--- a/Source/cmFileAPIConfigureLog.cxx
+++ b/Source/cmFileAPIConfigureLog.cxx
@@ -52,6 +52,7 @@ Json::Value ConfigureLog::DumpEventKindNames()
// major version of the configureLog object kind is needed.
Json::Value eventKindNames = Json::arrayValue;
if (this->Version == 1) {
+ eventKindNames.append("message-v1"); // WriteMessageEvent
eventKindNames.append("try_compile-v1"); // WriteTryCompileEvent
eventKindNames.append("try_run-v1"); // WriteTryRunEvent
}