summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2002-09-24 21:37:47 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2002-09-24 21:37:47 (GMT)
commitcabe849c03f210d104b2bc5a2571226d5e4ddcd2 (patch)
treee51e50abcaacb0b98c577e212372b32a4d517dcf /Source/cmSystemTools.cxx
parent3697ad6dc75db3b0f66ce9a2c0fba52c1602c4e9 (diff)
downloadCMake-cabe849c03f210d104b2bc5a2571226d5e4ddcd2.zip
CMake-cabe849c03f210d104b2bc5a2571226d5e4ddcd2.tar.gz
CMake-cabe849c03f210d104b2bc5a2571226d5e4ddcd2.tar.bz2
Add support for mac dylib
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r--Source/cmSystemTools.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index a5a6102..2be5fe8 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -1670,6 +1670,14 @@ std::string cmSystemTools::FindLibrary(const char* name,
{
return cmSystemTools::CollapseFullPath(tryPath.c_str());
}
+ tryPath = *p;
+ tryPath += "/lib";
+ tryPath += name;
+ tryPath += ".dylib";
+ if(cmSystemTools::FileExists(tryPath.c_str()))
+ {
+ return cmSystemTools::CollapseFullPath(tryPath.c_str());
+ }
#endif
}