Procházet zdrojové kódy

FIX: allow ADD_LIBRARY with no source list

Jim Miller před 25 roky
rodič
revize
e963dcaa8f
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      Source/cmAddLibraryCommand.cxx

+ 1 - 1
Source/cmAddLibraryCommand.cxx

@@ -19,7 +19,7 @@
 // cmLibraryCommand
 bool cmAddLibraryCommand::Invoke(std::vector<std::string>& args)
 {
-  if(args.size() < 2 )
+  if(args.size() < 1 )
     {
     this->SetError("called with incorrect number of arguments");
     return false;