mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-18 17:31:57 +08:00
Fix help string when NAMES was used (forgot the case when there is no name)
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
Reference in New Issue
Block a user