Browse Source

allows no arguments

Ken Martin 23 years ago
parent
commit
e8dbdcaf0c
2 changed files with 2 additions and 4 deletions
  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);