diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmFindBase.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Source/cmFindBase.cxx b/Source/cmFindBase.cxx index 9321708..c4f380e 100644 --- a/Source/cmFindBase.cxx +++ b/Source/cmFindBase.cxx @@ -378,13 +378,10 @@ void cmFindBase::AddFindPrefix(std::vector<std::string>& dest, { dir += "/"; } - if(subdir != "/") + std::string add = dir + subdir; + if(add != "/") { - std::string add = dir + subdir; - if(add != "/") - { - dest.push_back(add); - } + dest.push_back(add); } if (subdir == "bin") { |