| 1 | Index: Source/cmFindBase.cxx |
| 2 | =================================================================== |
| 3 | RCS file: /cvsroot/CMake/CMake/Source/cmFindBase.cxx,v |
| 4 | retrieving revision 1.35.2.1 |
| 5 | retrieving revision 1.37 |
| 6 | diff -u -r1.35.2.1 -r1.37 |
| 7 | --- Source/cmFindBase.cxx 8 Apr 2008 16:22:49 -0000 1.35.2.1 |
| 8 | +++ Source/cmFindBase.cxx 23 May 2008 19:25:04 -0000 1.37 |
| 9 | @@ -3,8 +3,8 @@ |
| 10 | Program: CMake - Cross-Platform Makefile Generator |
| 11 | Module: $RCSfile: cmFindBase.cxx,v $ |
| 12 | Language: C++ |
| 13 | - Date: $Date: 2008-04-08 16:22:49 $ |
| 14 | - Version: $Revision: 1.35.2.1 $ |
| 15 | + Date: $Date: 2008-05-23 19:25:04 $ |
| 16 | + Version: $Revision: 1.37 $ |
| 17 | |
| 18 | Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved. |
| 19 | See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details. |
| 20 | @@ -378,12 +378,19 @@ |
| 21 | { |
| 22 | dir += "/"; |
| 23 | } |
| 24 | - dest.push_back(dir + subdir); |
| 25 | + if(subdir != "/") |
| 26 | + { |
| 27 | + std::string add = dir + subdir; |
| 28 | + if(add != "/") |
| 29 | + { |
| 30 | + dest.push_back(add); |
| 31 | + } |
| 32 | + } |
| 33 | if (subdir == "bin") |
| 34 | { |
| 35 | dest.push_back(dir + "sbin"); |
| 36 | } |
| 37 | - if(!subdir.empty()) |
| 38 | + if(!subdir.empty() && *it != "/") |
| 39 | { |
| 40 | dest.push_back(*it); |
| 41 | } |