Ver Fonte

Fix help string when NAMES was used (forgot the case when there is no name)

Sebastien Barre há 24 anos atrás
pai
commit
d9858fea3b
1 ficheiros alterados com 5 adições e 1 exclusões
  1. 5 1
      Source/cmFindLibraryCommand.cxx

+ 5 - 1
Source/cmFindLibraryCommand.cxx

@@ -99,7 +99,11 @@ bool cmFindLibraryCommand::Invoke(std::vector<std::string>& args)
     }
 
   std::string helpString = "Where can ";
-  if (names.size() == 1)
+  if (names.size() == 0)
+    {
+    helpString += "the (unknown) library be found";
+    }
+  else if (names.size() == 1)
     {
     helpString += "the " + names[0] + " library be found";
     }