summaryrefslogtreecommitdiff
path: root/Source/cmConfigureLog.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-01-30 16:09:56 -0500
committerBrad King <brad.king@kitware.com>2023-02-01 09:32:42 -0500
commit5252c885693ce35467f6c4c7fdc8deb6406df149 (patch)
tree35704c91a461029b32411307789d096df0a52a10 /Source/cmConfigureLog.h
parent0a48d8fe5ccf8a44bcada7b528f4cf4dd591b18e (diff)
downloadcmake-5252c885693ce35467f6c4c7fdc8deb6406df149.tar.gz
try_compile: Record propagated CMake variables in configure log
These provide more detailed information about how the test project was configured. Issue: #23200
Diffstat (limited to 'Source/cmConfigureLog.h')
-rw-r--r--Source/cmConfigureLog.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmConfigureLog.h b/Source/cmConfigureLog.h
index eb25702f4d..7edc3ed657 100644
--- a/Source/cmConfigureLog.h
+++ b/Source/cmConfigureLog.h
@@ -2,6 +2,7 @@
file Copyright.txt or https://cmake.org/licensing for details. */
#pragma once
+#include <map>
#include <memory>
#include <string>
#include <vector>
@@ -42,6 +43,8 @@ public:
void WriteValue(cm::string_view key, int value);
void WriteValue(cm::string_view key, std::string const& value);
void WriteValue(cm::string_view key, std::vector<std::string> const& list);
+ void WriteValue(cm::string_view key,
+ std::map<std::string, std::string> const& map);
void WriteTextBlock(cm::string_view key, cm::string_view text);
void WriteLiteralTextBlock(cm::string_view key, cm::string_view text);