Allow multiline messages

This commit is contained in:
Bill Hoffman 2001-11-07 12:23:27 -05:00
parent 112707a9dc
commit 0314c5f76a
1 changed files with 6 additions and 17 deletions

View File

@ -49,25 +49,14 @@ bool cmMessageCommand::InitialPass(std::vector<std::string> const& args)
this->SetError("called with incorrect number of arguments");
return false;
}
std::string arg0 = args[0];
m_Makefile->ExpandVariablesInString(arg0);
if (args.size() >= 2)
{
std::string message;
std::vector<std::string>::const_iterator i = args.begin();
++i;
for(;i != args.end(); ++i)
{
message += *i;
}
m_Makefile->ExpandVariablesInString(message);
cmSystemTools::Message(arg0.c_str(), message.c_str());
}
else
{
cmSystemTools::Message(arg0.c_str());
}
cmSystemTools::Message(message.c_str());
return true;
}