瀏覽代碼

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

Sebastien Barre 24 年之前
父節點
當前提交
d9858fea3b
共有 1 個文件被更改,包括 5 次插入1 次删除
  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";
     }