Преглед изворни кода

modified to accept no arguments

Ken Martin пре 23 година
родитељ
комит
4823f16ebb
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      Source/cmAddDefinitionsCommand.cxx

+ 2 - 2
Source/cmAddDefinitionsCommand.cxx

@@ -19,10 +19,10 @@
 // cmAddDefinitionsCommand
 bool cmAddDefinitionsCommand::InitialPass(std::vector<std::string> const& argsIn)
 {
+  // it is OK to have no arguments
   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);