diff options
author | Sebastien Barre <sebastien.barre@kitware.com> | 2001-05-11 16:30:42 (GMT) |
---|---|---|
committer | Sebastien Barre <sebastien.barre@kitware.com> | 2001-05-11 16:30:42 (GMT) |
commit | d9858fea3b5524eebc73213c29e5019314bd444c (patch) | |
tree | 8de7a3d144c7a9b7014173c8c348c5b98d6cd102 /Source/cmFindLibraryCommand.cxx | |
parent | fb35c19d30141ddfa8fa666f74615a8b812132c2 (diff) | |
download | CMake-d9858fea3b5524eebc73213c29e5019314bd444c.zip CMake-d9858fea3b5524eebc73213c29e5019314bd444c.tar.gz CMake-d9858fea3b5524eebc73213c29e5019314bd444c.tar.bz2 |
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.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmFindLibraryCommand.cxx b/Source/cmFindLibraryCommand.cxx index 8aee6e4..1746327 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"; } |