cmMacroCommand: Remove condition around ARGN computation.

An empty string is appended if the condition is false, which is
ok for this commit.
This commit is contained in:
Stephen Kelly 2015-02-11 19:17:29 +01:00
parent 3250a7e535
commit f2c49f59d8
1 changed files with 1 additions and 4 deletions

View File

@ -162,10 +162,7 @@ bool cmMacroHelperCommand::InvokeInitialPass
if (tmps.find("${ARGN}") != std::string::npos)
{
std::string argnDef;
if (expandedArgs.size() > this->Args.size() - 1)
{
argnDef += expandedArgn;
}
argnDef += expandedArgn;
cmSystemTools::ReplaceString(tmps, "${ARGN}", argnDef.c_str());
}