diff options
author | Stephen Kelly <steveire@gmail.com> | 2016-01-28 21:10:27 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-08-25 13:47:27 (GMT) |
commit | 421012a330989a64b24a3289379bb4938e6ed3ea (patch) | |
tree | 02c059dff6075626a5edaeedcb8477ea6aaa058e /Source/cmake.h | |
parent | 14a8d61fd49a9b990cbef7e1495e4763f31c55f2 (diff) | |
download | CMake-421012a330989a64b24a3289379bb4938e6ed3ea.zip CMake-421012a330989a64b24a3289379bb4938e6ed3ea.tar.gz CMake-421012a330989a64b24a3289379bb4938e6ed3ea.tar.bz2 |
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.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/cmake.h b/Source/cmake.h index 343d371..dbe936b 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; |