summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.cxx
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.cxx
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.cxx')
-rw-r--r--Source/cmSystemTools.cxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 2fba13f..9b81bf2 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -19,6 +19,7 @@
#include <cm3p/uv.h>
#include "cmDuration.h"
+#include "cmMessageMetadata.h"
#include "cmProcessOutput.h"
#include "cmRange.h"
#include "cmStringAlgorithms.h"
@@ -263,8 +264,15 @@ void cmSystemTools::Stdout(const std::string& s)
void cmSystemTools::Message(const std::string& m, const char* title)
{
+ cmMessageMetadata md;
+ md.title = title;
+ Message(m, md);
+}
+
+void cmSystemTools::Message(const std::string& m, const cmMessageMetadata& md)
+{
if (s_MessageCallback) {
- s_MessageCallback(m, title);
+ s_MessageCallback(m, md);
} else {
std::cerr << m << std::endl;
}