浏览代码

modified to accept no arguments

Ken Martin 23 年之前
父节点
当前提交
4823f16ebb
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Source/cmAddDefinitionsCommand.cxx

+ 2 - 2
Source/cmAddDefinitionsCommand.cxx

@@ -19,10 +19,10 @@
 // cmAddDefinitionsCommand
 bool cmAddDefinitionsCommand::InitialPass(std::vector<std::string> const& argsIn)
 {
+  // it is OK to have no arguments
   if(argsIn.size() < 1 )
     {
-    this->SetError("called with incorrect number of arguments");
-    return false;
+    return true;
     }
   std::vector<std::string> args;
   cmSystemTools::ExpandListArguments(argsIn, args);