Explorar el Código

allows no arguments

Ken Martin hace 23 años
padre
commit
e8dbdcaf0c
Se han modificado 2 ficheros con 2 adiciones y 4 borrados
  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);