mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-12 17:19:05 -05:00
BUG: 7011 findqt hangs because of glob with find_path and framework header serach
This commit is contained in:
@@ -378,12 +378,19 @@ void cmFindBase::AddFindPrefix(std::vector<std::string>& dest,
|
||||
{
|
||||
dir += "/";
|
||||
}
|
||||
dest.push_back(dir + subdir);
|
||||
if(subdir != "/")
|
||||
{
|
||||
std::string add = dir + subdir;
|
||||
if(add != "/")
|
||||
{
|
||||
dest.push_back(add);
|
||||
}
|
||||
}
|
||||
if (subdir == "bin")
|
||||
{
|
||||
dest.push_back(dir + "sbin");
|
||||
}
|
||||
if(!subdir.empty())
|
||||
if(!subdir.empty() && *it != "/")
|
||||
{
|
||||
dest.push_back(*it);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user