ENH: space fixes and add a status option to message command

This commit is contained in:
Ken Martin
2002-11-13 15:59:40 -05:00
parent 19b144bdbf
commit 20b7e6b222
5 changed files with 27 additions and 3 deletions

View File

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