From 738bbc767bde346cf5d8e85a40adb340d3a7ed21 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 7 Apr 2005 14:41:34 -0400 Subject: BUG: Do not repeat paths when trying the lib/ to lib64/ replacement. --- Source/cmMakefile.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v0.12