diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-02-11 19:06:39 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-02-11 21:58:34 (GMT) |
commit | 4aa7bd2ac11aa2edb0288e5ba360984b7799130d (patch) | |
tree | 209730bcf70f037d588dc2a1e1406fd891c2cdab /Source/cmMacroCommand.cxx | |
parent | 6774c92b5809b80c767ef8094b2f26d06556e0fd (diff) | |
download | CMake-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.cxx | 6 |
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 |