summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2004-05-03 19:33:42 (GMT)
committerKen Martin <ken.martin@kitware.com>2004-05-03 19:33:42 (GMT)
commit0d3bbe81231e8c6ba66bb9000181f751fe14b9f0 (patch)
tree1a684b4bbd92723ba4b8fdb88660622c6b815df6
parent22d69a944a7e0b24791bce494d9683429cdf5289 (diff)
downloadCMake-0d3bbe81231e8c6ba66bb9000181f751fe14b9f0.zip
CMake-0d3bbe81231e8c6ba66bb9000181f751fe14b9f0.tar.gz
CMake-0d3bbe81231e8c6ba66bb9000181f751fe14b9f0.tar.bz2
minor backwards fix
-rw-r--r--Source/cmIfCommand.cxx7
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;