Ken Martin 23 лет назад
Родитель
Сommit
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);