cmMacroCommand: Inline variable computation.
This commit is contained in:
parent
f79c0f7697
commit
a551851ab3
|
@ -86,7 +86,6 @@ bool cmMacroHelperCommand::InvokeInitialPass
|
||||||
|
|
||||||
std::string tmps;
|
std::string tmps;
|
||||||
cmListFileArgument arg;
|
cmListFileArgument arg;
|
||||||
std::string variable;
|
|
||||||
|
|
||||||
// make sure the number of arguments passed is at least the number
|
// make sure the number of arguments passed is at least the number
|
||||||
// required by the signature
|
// required by the signature
|
||||||
|
@ -119,10 +118,7 @@ bool cmMacroHelperCommand::InvokeInitialPass
|
||||||
variables.reserve(this->Args.size() - 1);
|
variables.reserve(this->Args.size() - 1);
|
||||||
for (unsigned int j = 1; j < this->Args.size(); ++j)
|
for (unsigned int j = 1; j < this->Args.size(); ++j)
|
||||||
{
|
{
|
||||||
std::string variable = "${";
|
variables.push_back("${" + this->Args[j] + "}");
|
||||||
variable += this->Args[j];
|
|
||||||
variable += "}";
|
|
||||||
variables.push_back(variable);
|
|
||||||
}
|
}
|
||||||
if(!this->Functions.empty())
|
if(!this->Functions.empty())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue