mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-17 07:11:52 +08:00
cmake: Extract DisplayMessage API.
This commit is contained in:
@@ -2310,6 +2310,12 @@ void cmake::IssueMessage(cmake::MessageType t, std::string const& text,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this->DisplayMessage(t, text, backtrace);
|
||||||
|
}
|
||||||
|
|
||||||
|
void cmake::DisplayMessage(cmake::MessageType t, std::string const& text,
|
||||||
|
cmListFileBacktrace const& backtrace) const
|
||||||
|
{
|
||||||
std::ostringstream msg;
|
std::ostringstream msg;
|
||||||
if (!printMessagePreamble(t, msg)) {
|
if (!printMessagePreamble(t, msg)) {
|
||||||
return;
|
return;
|
||||||
|
@@ -384,6 +384,9 @@ public:
|
|||||||
cmListFileBacktrace const& backtrace = cmListFileBacktrace(),
|
cmListFileBacktrace const& backtrace = cmListFileBacktrace(),
|
||||||
bool force = false) const;
|
bool force = false) const;
|
||||||
|
|
||||||
|
void DisplayMessage(cmake::MessageType t, std::string const& text,
|
||||||
|
cmListFileBacktrace const& backtrace) const;
|
||||||
|
|
||||||
///! run the --build option
|
///! run the --build option
|
||||||
int Build(const std::string& dir, const std::string& target,
|
int Build(const std::string& dir, const std::string& target,
|
||||||
const std::string& config,
|
const std::string& config,
|
||||||
|
Reference in New Issue
Block a user