ENH: better fix for not adding /

This commit is contained in:
Bill Hoffman 2008-05-23 15:52:15 -04:00
parent c3bc99d5a1
commit 60e0c7ed9c
1 changed files with 3 additions and 6 deletions

View File

@ -378,13 +378,10 @@ void cmFindBase::AddFindPrefix(std::vector<std::string>& dest,
{ {
dir += "/"; dir += "/";
} }
if(subdir != "/") std::string add = dir + subdir;
if(add != "/")
{ {
std::string add = dir + subdir; dest.push_back(add);
if(add != "/")
{
dest.push_back(add);
}
} }
if (subdir == "bin") if (subdir == "bin")
{ {