summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-04-07 18:41:34 (GMT)
committerBrad King <brad.king@kitware.com>2005-04-07 18:41:34 (GMT)
commit738bbc767bde346cf5d8e85a40adb340d3a7ed21 (patch)
tree1830a120e4fb94485c05f1a3612568e293020d8e /Source/cmMakefile.cxx
parent0d494a031cd1cfc32ea713d0d01d83b91ee29398 (diff)
downloadCMake-738bbc767bde346cf5d8e85a40adb340d3a7ed21.zip
CMake-738bbc767bde346cf5d8e85a40adb340d3a7ed21.tar.gz
CMake-738bbc767bde346cf5d8e85a40adb340d3a7ed21.tar.bz2
BUG: Do not repeat paths when trying the lib/ to lib64/ replacement.
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 84ccc78..130d04a 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -2200,7 +2200,7 @@ std::string cmMakefile::FindLibrary(const char* name,
std::string s = *i;
std::string s2 = *i;
cmSystemTools::ReplaceString(s, "lib/", "lib64/");
- if(cmSystemTools::FileIsDirectory(s.c_str()))
+ if((s != *i) && cmSystemTools::FileIsDirectory(s.c_str()))
{
path64.push_back(s);
}