Browse Source

ENH: better fix for not adding /

Bill Hoffman 17 years ago
parent
commit
60e0c7ed9c
1 changed files with 3 additions and 6 deletions
  1. 3 6
      Source/cmFindBase.cxx

+ 3 - 6
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")
       {