mirror of
https://github.com/reactos/CMake.git
synced 2024-11-24 03:59:58 +00:00
ENH: expand variables in message command output
This commit is contained in:
parent
7d907c8d59
commit
1830690a0d
@ -49,7 +49,8 @@ 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;
|
||||
@ -59,11 +60,12 @@ bool cmMessageCommand::InitialPass(std::vector<std::string> const& args)
|
||||
{
|
||||
message += *i;
|
||||
}
|
||||
cmSystemTools::Message(args[0].c_str(), message.c_str());
|
||||
m_Makefile->ExpandVariablesInString(message);
|
||||
cmSystemTools::Message(arg0.c_str(), message.c_str());
|
||||
}
|
||||
else
|
||||
{
|
||||
cmSystemTools::Message(args[0].c_str());
|
||||
cmSystemTools::Message(arg0.c_str());
|
||||
}
|
||||
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user