diff options
Diffstat (limited to 'Source/cmIfCommand.cxx')
-rw-r--r-- | Source/cmIfCommand.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmIfCommand.cxx b/Source/cmIfCommand.cxx index c094cdd..5c6c632 100644 --- a/Source/cmIfCommand.cxx +++ b/Source/cmIfCommand.cxx @@ -153,6 +153,13 @@ bool cmIfCommand::IsTrue(const std::vector<std::string> &args, const char *def; const char *def2; + // handle empty invocation + if (args.size() < 1) + { + isValid = true; + return false; + } + // store the reduced args in this vector std::deque<std::string> newArgs; int reducible = 1; |