diff options
| author | Brad King <brad.king@kitware.com> | 2023-01-30 16:09:56 -0500 |
|---|---|---|
| committer | Brad King <brad.king@kitware.com> | 2023-02-01 09:32:42 -0500 |
| commit | 5252c885693ce35467f6c4c7fdc8deb6406df149 (patch) | |
| tree | 35704c91a461029b32411307789d096df0a52a10 /Source/cmConfigureLog.h | |
| parent | 0a48d8fe5ccf8a44bcada7b528f4cf4dd591b18e (diff) | |
| download | cmake-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.h | 3 |
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); |
