summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.h
diff options
context:
space:
mode:
authorMarius Messerschmidt <marius.messerschmidt@googlemail.com>2021-05-08 20:30:35 (GMT)
committerBrad King <brad.king@kitware.com>2021-05-19 13:06:27 (GMT)
commitbceb8e2ed23340a90d2093e05d50f0cc797f6432 (patch)
tree01e3f1a9142ffa35813617296b49b1c335cc7f5e /Source/cmSystemTools.h
parent82fd8b6ba36658705fc55bc40df0b6b6ec80b773 (diff)
downloadCMake-bceb8e2ed23340a90d2093e05d50f0cc797f6432.zip
CMake-bceb8e2ed23340a90d2093e05d50f0cc797f6432.tar.gz
CMake-bceb8e2ed23340a90d2093e05d50f0cc797f6432.tar.bz2
cmMessenger: Pass title inside a metadata structure
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r--Source/cmSystemTools.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h
index 474f591..5c3b5a9 100644
--- a/Source/cmSystemTools.h
+++ b/Source/cmSystemTools.h
@@ -19,6 +19,8 @@
#include "cmDuration.h"
#include "cmProcessOutput.h"
+struct cmMessageMetadata;
+
/** \class cmSystemTools
* \brief A collection of useful functions for CMake.
*
@@ -40,7 +42,8 @@ public:
/** Map help document name to file name. */
static std::string HelpFileName(cm::string_view);
- using MessageCallback = std::function<void(const std::string&, const char*)>;
+ using MessageCallback =
+ std::function<void(const std::string&, const cmMessageMetadata&)>;
/**
* Set the function used by GUIs to display error messages
* Function gets passed: message as a const char*,
@@ -57,6 +60,7 @@ public:
* Display a message.
*/
static void Message(const std::string& m, const char* title = nullptr);
+ static void Message(const std::string& m, const cmMessageMetadata& md);
using OutputCallback = std::function<void(std::string const&)>;