summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/SystemTools.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2005-12-26 18:14:19 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2005-12-26 18:14:19 (GMT)
commit452925649a619256e509ed19bb7c41af1d643deb (patch)
tree3d4d79fdeda6d6a578cf8c529daa2d0c47ba8c6b /Source/kwsys/SystemTools.cxx
parent102ab85a172b67696cf72c4ba526012a83a5bc2e (diff)
downloadCMake-452925649a619256e509ed19bb7c41af1d643deb.zip
CMake-452925649a619256e509ed19bb7c41af1d643deb.tar.gz
CMake-452925649a619256e509ed19bb7c41af1d643deb.tar.bz2
ENH: add better support for framework linking
Diffstat (limited to 'Source/kwsys/SystemTools.cxx')
-rw-r--r--Source/kwsys/SystemTools.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx
index 5d34ac5..e406723 100644
--- a/Source/kwsys/SystemTools.cxx
+++ b/Source/kwsys/SystemTools.cxx
@@ -1992,6 +1992,17 @@ kwsys_stl::string SystemTools
for(kwsys_stl::vector<kwsys_stl::string>::const_iterator p = path.begin();
p != path.end(); ++p)
{
+#if defined(__APPLE__)
+ tryPath = *p;
+ tryPath += "/";
+ tryPath += name;
+ tryPath += ".framework";
+ if(SystemTools::FileExists(tryPath.c_str())
+ && SystemTools::FileIsDirectory(tryPath.c_str()))
+ {
+ return SystemTools::CollapseFullPath(tryPath.c_str());
+ }
+#endif
#if defined(_WIN32) && !defined(__CYGWIN__) && !defined(__MINGW32__)
tryPath = *p;
tryPath += "/";