diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2005-12-26 18:14:19 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2005-12-26 18:14:19 (GMT) |
commit | 452925649a619256e509ed19bb7c41af1d643deb (patch) | |
tree | 3d4d79fdeda6d6a578cf8c529daa2d0c47ba8c6b /Source/cmLocalUnixMakefileGenerator3.cxx | |
parent | 102ab85a172b67696cf72c4ba526012a83a5bc2e (diff) | |
download | CMake-452925649a619256e509ed19bb7c41af1d643deb.zip CMake-452925649a619256e509ed19bb7c41af1d643deb.tar.gz CMake-452925649a619256e509ed19bb7c41af1d643deb.tar.bz2 |
ENH: add better support for framework linking
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.cxx')
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator3.cxx | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx index 482854d..f446bc7 100644 --- a/Source/cmLocalUnixMakefileGenerator3.cxx +++ b/Source/cmLocalUnixMakefileGenerator3.cxx @@ -445,6 +445,9 @@ cmLocalUnixMakefileGenerator3 // Add include directory flags. this->AppendFlags(flags, this->GetIncludeFlags(lang)); + // Add include directory flags. + this->AppendFlags(flags, this->GetFrameworkFlags(target).c_str()); + flagFileStream << lang << "_FLAGS = " << flags << "\n" << "\n"; @@ -499,6 +502,27 @@ cmLocalUnixMakefileGenerator3 } //---------------------------------------------------------------------------- +std::string +cmLocalUnixMakefileGenerator3 +::GetFrameworkFlags(cmTarget& target) +{ +#ifndef __APPLE__ + return std::string(); +#else + std::string flags; + std::vector<std::string>& frameworks = target.GetFrameworks(); + for(std::vector<std::string>::iterator i = frameworks.begin(); + i != frameworks.end(); ++i) + { + flags += "-F"; + flags += this->ConvertToOutputForExisting(i->c_str()); + flags += " "; + } + return flags; +#endif +} + +//---------------------------------------------------------------------------- void cmLocalUnixMakefileGenerator3 ::WriteObjectDependRules(cmSourceFile& source, |