summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-05-10 19:50:03 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2001-05-10 19:50:03 (GMT)
commitd04756d8f7096ce6a6f019fcc26be431a226dc6e (patch)
treec3999ff96f0e65161d313d1785a6e442859aa60f /Source/cmSystemTools.cxx
parenta15ae83e95194001c9595b269c0c7de2e7b9f20b (diff)
downloadCMake-d04756d8f7096ce6a6f019fcc26be431a226dc6e.zip
CMake-d04756d8f7096ce6a6f019fcc26be431a226dc6e.tar.gz
CMake-d04756d8f7096ce6a6f019fcc26be431a226dc6e.tar.bz2
BUG: fix unix path search
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r--Source/cmSystemTools.cxx15
1 files changed, 9 insertions, 6 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 2240424..1938c0e 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -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()))
{