summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmIfCommand.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/cmIfCommand.cxx b/Source/cmIfCommand.cxx
index 9707112..f04f79a 100644
--- a/Source/cmIfCommand.cxx
+++ b/Source/cmIfCommand.cxx
@@ -237,9 +237,7 @@ bool cmIfCommand::IsTrue(const std::vector<std::string> &args,
}
newArgs.erase(argP1);
argP1 = arg;
- argP1++;
- argP2 = argP1;
- argP2++;
+ IncrementArguments(newArgs,argP1,argP2);
reducible = 1;
}
// does a command exist