fix + => += bug reported by A. Perera
This commit is contained in:
parent
23df737b6f
commit
4d07ba8b75
|
@ -793,7 +793,7 @@ std::string cmSystemTools::FindLibrary(const char* name,
|
||||||
tryPath = *p;
|
tryPath = *p;
|
||||||
tryPath += "/lib";
|
tryPath += "/lib";
|
||||||
tryPath += name;
|
tryPath += name;
|
||||||
tryPath + ".so";
|
tryPath += ".so";
|
||||||
if(cmSystemTools::FileExists(tryPath.c_str()))
|
if(cmSystemTools::FileExists(tryPath.c_str()))
|
||||||
{
|
{
|
||||||
return cmSystemTools::CollapseFullPath(tryPath.c_str());
|
return cmSystemTools::CollapseFullPath(tryPath.c_str());
|
||||||
|
@ -801,7 +801,7 @@ std::string cmSystemTools::FindLibrary(const char* name,
|
||||||
tryPath = *p;
|
tryPath = *p;
|
||||||
tryPath = "/lib";
|
tryPath = "/lib";
|
||||||
tryPath += name;
|
tryPath += name;
|
||||||
tryPath + ".a";
|
tryPath += ".a";
|
||||||
if(cmSystemTools::FileExists(tryPath.c_str()))
|
if(cmSystemTools::FileExists(tryPath.c_str()))
|
||||||
{
|
{
|
||||||
return cmSystemTools::CollapseFullPath(tryPath.c_str());
|
return cmSystemTools::CollapseFullPath(tryPath.c_str());
|
||||||
|
@ -809,7 +809,7 @@ std::string cmSystemTools::FindLibrary(const char* name,
|
||||||
tryPath = *p;
|
tryPath = *p;
|
||||||
tryPath = "/lib";
|
tryPath = "/lib";
|
||||||
tryPath += name;
|
tryPath += name;
|
||||||
tryPath + ".sl";
|
tryPath += ".sl";
|
||||||
if(cmSystemTools::FileExists(tryPath.c_str()))
|
if(cmSystemTools::FileExists(tryPath.c_str()))
|
||||||
{
|
{
|
||||||
return cmSystemTools::CollapseFullPath(tryPath.c_str());
|
return cmSystemTools::CollapseFullPath(tryPath.c_str());
|
||||||
|
|
Loading…
Reference in New Issue