From 60e0c7ed9c4ded49dd6d758ea8536eb385353910 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Fri, 23 May 2008 15:52:15 -0400 Subject: ENH: better fix for not adding / --- Source/cmFindBase.cxx | 9 +++------ 1 file 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& 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") { -- cgit v0.12