From 54c65d5fb22c3cc53ecd707687c2f25b1643726b Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Sun, 12 Jun 2016 22:06:01 +0200 Subject: cmake: Extract DisplayMessage API. --- Source/cmake.cxx | 6 ++++++ Source/cmake.h | 3 +++ 2 files changed, 9 insertions(+) diff --git a/Source/cmake.cxx b/Source/cmake.cxx index ecbdc61..657091b 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -2310,6 +2310,12 @@ void cmake::IssueMessage(cmake::MessageType t, std::string const& text, return; } + this->DisplayMessage(t, text, backtrace); +} + +void cmake::DisplayMessage(cmake::MessageType t, std::string const& text, + cmListFileBacktrace const& backtrace) const +{ std::ostringstream msg; if (!printMessagePreamble(t, msg)) { return; diff --git a/Source/cmake.h b/Source/cmake.h index 4958a05..1d63ede 100644 --- a/Source/cmake.h +++ b/Source/cmake.h @@ -384,6 +384,9 @@ public: cmListFileBacktrace const& backtrace = cmListFileBacktrace(), bool force = false) 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, -- cgit v0.12