diff options
author | Brad King <brad.king@kitware.com> | 2005-04-07 18:41:34 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2005-04-07 18:41:34 (GMT) |
commit | 738bbc767bde346cf5d8e85a40adb340d3a7ed21 (patch) | |
tree | 1830a120e4fb94485c05f1a3612568e293020d8e /Source/cmMakefile.cxx | |
parent | 0d494a031cd1cfc32ea713d0d01d83b91ee29398 (diff) | |
download | CMake-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.cxx | 2 |
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); } |