Browse Source

minor fix to allow if with no arguments

Ken Martin 23 years ago
parent
commit
2cf6730def
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Source/cmIfCommand.cxx

+ 1 - 0
Source/cmIfCommand.cxx

@@ -134,6 +134,7 @@ bool cmIfCommand::IsTrue(const std::vector<std::string> &args, bool &isValid,
 
   if(args.size() < 1 )
     {
+    isValid = true;
     return false;
     }