summaryrefslogtreecommitdiff
path: root/Source/cmake.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2016-01-28 22:10:27 +0100
committerBrad King <brad.king@kitware.com>2016-08-25 09:47:27 -0400
commit421012a330989a64b24a3289379bb4938e6ed3ea (patch)
tree02c059dff6075626a5edaeedcb8477ea6aaa058e /Source/cmake.h
parent14a8d61fd49a9b990cbef7e1495e4763f31c55f2 (diff)
downloadcmake-421012a330989a64b24a3289379bb4938e6ed3ea.tar.gz
cmMessenger: Extract from cmake class
This way messages can be issued independent of the cmake instance. It is now possible to make DisplayMessage a virtual interface and override it to handle messages in the cmake-gui or future IDE interaction interfaces.
Diffstat (limited to 'Source/cmake.h')
-rw-r--r--Source/cmake.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/cmake.h b/Source/cmake.h
index 343d37120e..dbe936ba44 100644
--- a/Source/cmake.h
+++ b/Source/cmake.h
@@ -25,6 +25,7 @@ class cmGlobalGeneratorFactory;
class cmGlobalGenerator;
class cmLocalGenerator;
class cmMakefile;
+class cmMessenger;
class cmVariableWatch;
class cmFileTimeComparison;
class cmExternalMakefileProjectGeneratorFactory;
@@ -346,6 +347,8 @@ public:
return this->CMakeEditCommand;
}
+ cmMessenger* GetMessenger() const;
+
/*
* Get the state of the suppression of developer (author) warnings.
* Returns false, by default, if developer warnings should be shown, true
@@ -395,9 +398,6 @@ public:
cmake::MessageType t, std::string const& text,
cmListFileBacktrace const& backtrace = cmListFileBacktrace()) const;
- void DisplayMessage(cmake::MessageType t, std::string const& text,
- cmListFileBacktrace const& backtrace) const;
-
///! run the --build option
int Build(const std::string& dir, const std::string& target,
const std::string& config,
@@ -491,6 +491,7 @@ private:
cmState* State;
cmState::Snapshot CurrentSnapshot;
+ cmMessenger* Messenger;
std::vector<std::string> TraceOnlyThisSources;