BUG: Do not repeat paths when trying the lib/ to lib64/ replacement.

This commit is contained in:
Brad King 2005-04-07 14:41:34 -04:00
parent 0d494a031c
commit 738bbc767b
1 changed files with 1 additions and 1 deletions

View File

@ -2200,7 +2200,7 @@ std::string cmMakefile::FindLibrary(const char* name,
std::string s = *i; std::string s = *i;
std::string s2 = *i; std::string s2 = *i;
cmSystemTools::ReplaceString(s, "lib/", "lib64/"); cmSystemTools::ReplaceString(s, "lib/", "lib64/");
if(cmSystemTools::FileIsDirectory(s.c_str())) if((s != *i) && cmSystemTools::FileIsDirectory(s.c_str()))
{ {
path64.push_back(s); path64.push_back(s);
} }