summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmMacroCommand.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/Source/cmMacroCommand.cxx b/Source/cmMacroCommand.cxx
index 6635fee..111ad96 100644
--- a/Source/cmMacroCommand.cxx
+++ b/Source/cmMacroCommand.cxx
@@ -159,11 +159,7 @@ bool cmMacroHelperCommand::InvokeInitialPass
// replace argc
cmSystemTools::ReplaceString(tmps, "${ARGC}",argcDef.c_str());
- // repleace ARGN
- if (tmps.find("${ARGN}") != std::string::npos)
- {
- cmSystemTools::ReplaceString(tmps, "${ARGN}", expandedArgn.c_str());
- }
+ cmSystemTools::ReplaceString(tmps, "${ARGN}", expandedArgn.c_str());
// if the current argument of the current function has ${ARGV in it
// then try replacing ARGV values