From f2c49f59d8dbca936a40b62a9079fa71ca551365 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Wed, 11 Feb 2015 19:17:29 +0100 Subject: cmMacroCommand: Remove condition around ARGN computation. An empty string is appended if the condition is false, which is ok for this commit. --- Source/cmMacroCommand.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Source/cmMacroCommand.cxx b/Source/cmMacroCommand.cxx index b27b994..9fc479e 100644 --- a/Source/cmMacroCommand.cxx +++ b/Source/cmMacroCommand.cxx @@ -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()); } -- cgit v0.12