Commit 0d3bbe81 authored by Ken Martin's avatar Ken Martin
Browse files

minor backwards fix

parent 22d69a94
...@@ -153,6 +153,13 @@ bool cmIfCommand::IsTrue(const std::vector<std::string> &args, ...@@ -153,6 +153,13 @@ bool cmIfCommand::IsTrue(const std::vector<std::string> &args,
const char *def; const char *def;
const char *def2; const char *def2;
// handle empty invocation
if (args.size() < 1)
{
isValid = true;
return false;
}
// store the reduced args in this vector // store the reduced args in this vector
std::deque<std::string> newArgs; std::deque<std::string> newArgs;
int reducible = 1; int reducible = 1;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment