summaryrefslogtreecommitdiffstats
path: root/Source/cmMacroCommand.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-02-11 19:06:39 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-02-11 21:58:34 (GMT)
commit4aa7bd2ac11aa2edb0288e5ba360984b7799130d (patch)
tree209730bcf70f037d588dc2a1e1406fd891c2cdab /Source/cmMacroCommand.cxx
parent6774c92b5809b80c767ef8094b2f26d06556e0fd (diff)
downloadCMake-4aa7bd2ac11aa2edb0288e5ba360984b7799130d.zip
CMake-4aa7bd2ac11aa2edb0288e5ba360984b7799130d.tar.gz
CMake-4aa7bd2ac11aa2edb0288e5ba360984b7799130d.tar.bz2
cmMacroCommand: Remove condition around ARGN replacement.
There is none for ARGC replacement, so no reason to conditionalize the replacement. The computation is already done.
Diffstat (limited to 'Source/cmMacroCommand.cxx')
-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