浏览代码

allows no arguments

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

+ 1 - 2
Source/cmIncludeDirectoryCommand.cxx

@@ -21,8 +21,7 @@ bool cmIncludeDirectoryCommand::InitialPass(std::vector<std::string> const& args
 {
   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);

+ 1 - 2
Source/cmLinkLibrariesCommand.cxx

@@ -21,8 +21,7 @@ bool cmLinkLibrariesCommand::InitialPass(std::vector<std::string> const& argsIn)
 {
   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);