mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-01 04:03:24 +03:00
cmMacroCommand: Remove condition around ARGN replacement.
There is none for ARGC replacement, so no reason to conditionalize the replacement. The computation is already done.
This commit is contained in:
1 parent
6774c92b58
commit
4aa7bd2ac1
1 file changed
+1
-5
@@ -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
|
||||
|
||||
Reference in new issue
Block a user