Allow multiline messages
This commit is contained in:
parent
112707a9dc
commit
0314c5f76a
@ -49,25 +49,14 @@ bool cmMessageCommand::InitialPass(std::vector<std::string> const& args)
|
|||||||
this->SetError("called with incorrect number of arguments");
|
this->SetError("called with incorrect number of arguments");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
std::string arg0 = args[0];
|
std::string message;
|
||||||
m_Makefile->ExpandVariablesInString(arg0);
|
std::vector<std::string>::const_iterator i = args.begin();
|
||||||
if (args.size() >= 2)
|
for(;i != args.end(); ++i)
|
||||||
{
|
{
|
||||||
std::string message;
|
message += *i;
|
||||||
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
|
m_Makefile->ExpandVariablesInString(message);
|
||||||
{
|
cmSystemTools::Message(message.c_str());
|
||||||
cmSystemTools::Message(arg0.c_str());
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user