Commit d9858fea authored by Sebastien Barre's avatar Sebastien Barre

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

parent fb35c19d
......@@ -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";
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment