From 0d3bbe81231e8c6ba66bb9000181f751fe14b9f0 Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Mon, 3 May 2004 15:33:42 -0400 Subject: [PATCH] minor backwards fix --- Source/cmIfCommand.cxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Source/cmIfCommand.cxx b/Source/cmIfCommand.cxx index c094cdd7d..5c6c632d4 100644 --- a/Source/cmIfCommand.cxx +++ b/Source/cmIfCommand.cxx @@ -153,6 +153,13 @@ bool cmIfCommand::IsTrue(const std::vector &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 newArgs; int reducible = 1;