浏览代码

minor fix to allow if with no arguments

Ken Martin 23 年之前
父节点
当前提交
2cf6730def
共有 1 个文件被更改,包括 1 次插入0 次删除
  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;
     }