summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-05-23 19:52:15 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-05-23 19:52:15 (GMT)
commit60e0c7ed9c4ded49dd6d758ea8536eb385353910 (patch)
treedbf31436776c107d585617a16e2155faacf2de18 /Source
parentc3bc99d5a1e8eec89f578ba46d3483c03b2a43b0 (diff)
downloadCMake-60e0c7ed9c4ded49dd6d758ea8536eb385353910.zip
CMake-60e0c7ed9c4ded49dd6d758ea8536eb385353910.tar.gz
CMake-60e0c7ed9c4ded49dd6d758ea8536eb385353910.tar.bz2
ENH: better fix for not adding /
Diffstat (limited to 'Source')
-rw-r--r--Source/cmFindBase.cxx9
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")
{