summaryrefslogtreecommitdiff
path: root/Source/cmFindLibraryCommand.cxx
diff options
context:
space:
mode:
authorSebastien Barre <sebastien.barre@kitware.com>2001-05-11 12:30:42 -0400
committerSebastien Barre <sebastien.barre@kitware.com>2001-05-11 12:30:42 -0400
commitd9858fea3b5524eebc73213c29e5019314bd444c (patch)
tree8de7a3d144c7a9b7014173c8c348c5b98d6cd102 /Source/cmFindLibraryCommand.cxx
parentfb35c19d30141ddfa8fa666f74615a8b812132c2 (diff)
downloadcmake-d9858fea3b5524eebc73213c29e5019314bd444c.tar.gz
Fix help string when NAMES was used (forgot the case when there is no name)
Diffstat (limited to 'Source/cmFindLibraryCommand.cxx')
-rw-r--r--Source/cmFindLibraryCommand.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmFindLibraryCommand.cxx b/Source/cmFindLibraryCommand.cxx
index 8aee6e48f6..174632706f 100644
--- a/Source/cmFindLibraryCommand.cxx
+++ b/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";
}