mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 13:51:33 -06:00
ENH: space fixes and add a status option to message command
This commit is contained in:
@@ -30,11 +30,20 @@ bool cmMessageCommand::InitialPass(std::vector<std::string> const& argsIn)
|
||||
std::vector<std::string>::const_iterator i = args.begin();
|
||||
|
||||
bool send_error = false;
|
||||
bool status = false;
|
||||
if (*i == "SEND_ERROR")
|
||||
{
|
||||
send_error = true;
|
||||
++i;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (*i == "STATUS")
|
||||
{
|
||||
status = true;
|
||||
++i;
|
||||
}
|
||||
}
|
||||
|
||||
for(;i != args.end(); ++i)
|
||||
{
|
||||
@@ -47,7 +56,14 @@ bool cmMessageCommand::InitialPass(std::vector<std::string> const& argsIn)
|
||||
}
|
||||
else
|
||||
{
|
||||
cmSystemTools::Message(message.c_str());
|
||||
if (status)
|
||||
{
|
||||
m_Makefile->DisplayStatus(message.c_str(), -1);
|
||||
}
|
||||
else
|
||||
{
|
||||
cmSystemTools::Message(message.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user