Fix help string when NAMES was used (forgot the case when there is no name)
This commit is contained in:
parent
fb35c19d30
commit
d9858fea3b
@ -99,7 +99,11 @@ bool cmFindLibraryCommand::Invoke(std::vector<std::string>& args)
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::string helpString = "Where can ";
|
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";
|
helpString += "the " + names[0] + " library be found";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user