ENH: better fix for not adding /
This commit is contained in:
parent
c3bc99d5a1
commit
60e0c7ed9c
|
@ -378,14 +378,11 @@ void cmFindBase::AddFindPrefix(std::vector<std::string>& dest,
|
||||||
{
|
{
|
||||||
dir += "/";
|
dir += "/";
|
||||||
}
|
}
|
||||||
if(subdir != "/")
|
|
||||||
{
|
|
||||||
std::string add = dir + subdir;
|
std::string add = dir + subdir;
|
||||||
if(add != "/")
|
if(add != "/")
|
||||||
{
|
{
|
||||||
dest.push_back(add);
|
dest.push_back(add);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if (subdir == "bin")
|
if (subdir == "bin")
|
||||||
{
|
{
|
||||||
dest.push_back(dir + "sbin");
|
dest.push_back(dir + "sbin");
|
||||||
|
|
Loading…
Reference in New Issue