Commit d04756d8 authored by Bill Hoffman's avatar Bill Hoffman
Browse files

BUG: fix unix path search

parent a15ae83e
......@@ -686,22 +686,25 @@ std::string cmSystemTools::FindLibrary(const char* name,
{
return cmSystemTools::CollapseFullPath(tryPath.c_str());
}
tryPath = "lib";
tryPath += *p;
tryPath = *p;
tryPath += "/lib";
tryPath += name;
tryPath + ".so";
if(cmSystemTools::FileExists(tryPath.c_str()))
{
return cmSystemTools::CollapseFullPath(tryPath.c_str());
}
tryPath = "lib";
tryPath += *p;
tryPath = *p;
tryPath = "/lib";
tryPath += name;
tryPath + ".a";
if(cmSystemTools::FileExists(tryPath.c_str()))
{
return cmSystemTools::CollapseFullPath(tryPath.c_str());
}
tryPath = "lib";
tryPath += *p;
tryPath = *p;
tryPath = "/lib";
tryPath += name;
tryPath + ".sl";
if(cmSystemTools::FileExists(tryPath.c_str()))
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment