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

This commit is contained in:
Sebastien Barre 2001-05-11 12:30:42 -04:00
parent fb35c19d30
commit d9858fea3b
1 changed files with 5 additions and 1 deletions

View File

@ -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";
}