cmake: Extract DisplayMessage API.

This commit is contained in:
Stephen Kelly 2016-06-12 22:06:01 +02:00
parent acf0c0f444
commit 54c65d5fb2
2 changed files with 9 additions and 0 deletions

View File

@ -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;

View File

@ -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,