Browse Source

Improved checking for number of arguments passed

Pavel Solodovnikov 8 years ago
parent
commit
2548615630
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/cmAuxSourceDirectoryCommand.cxx

+ 1 - 1
Source/cmAuxSourceDirectoryCommand.cxx

@@ -18,7 +18,7 @@ class cmExecutionStatus;
 bool cmAuxSourceDirectoryCommand::InitialPass(
   std::vector<std::string> const& args, cmExecutionStatus&)
 {
-  if (args.size() < 2 || args.size() > 2) {
+  if (args.size() != 2) {
     this->SetError("called with incorrect number of arguments");
     return false;
   }