summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.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/cmSystemTools.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/cmSystemTools.cxx')
-rw-r--r--Source/cmSystemTools.cxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 623a0f9..e2df4b2 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -1345,3 +1345,16 @@ bool cmSystemTools::PutEnv(const char* value)
localEnvironment.push_back(envVar);
return ret == 0;
}
+
+bool cmSystemTools::IsPathToFramework(const char* path)
+{
+ if(cmSystemTools::FileIsFullPath(path))
+ {
+ std::string libname = path;
+ if(libname.find(".framework") == libname.size()+1-sizeof(".framework"))
+ {
+ return true;
+ }
+ }
+ return false;
+}