diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2005-12-27 19:56:56 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2005-12-27 19:56:56 (GMT) |
commit | 82bb6fae0d127b2ffcaae5eaa8a5365093cfac5c (patch) | |
tree | 6ed31cc2a14443808e4b04510bea76e22c204a13 /Source/cmLocalGenerator.cxx | |
parent | c04cbcac70535788ca79ce7cf621f3baaf2abcbb (diff) | |
download | CMake-82bb6fae0d127b2ffcaae5eaa8a5365093cfac5c.zip CMake-82bb6fae0d127b2ffcaae5eaa8a5365093cfac5c.tar.gz CMake-82bb6fae0d127b2ffcaae5eaa8a5365093cfac5c.tar.bz2 |
ENH: add framework support to FIND_FILE
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index b0066b0..214ab6b 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -1055,8 +1055,22 @@ const char* cmLocalGenerator::GetIncludeFlags(const char* lang) repeatFlag = false; } bool flagUsed = false; + std::set<cmStdString> emitted; for(i = includes.begin(); i != includes.end(); ++i) { +#ifdef __APPLE__ + if(cmSystemTools::IsPathToFramework(i->c_str())) + { + std::string frameworkDir = *i; + frameworkDir += "/../"; + frameworkDir = cmSystemTools::CollapseFullPath(frameworkDir.c_str()); + if(emitted.insert(frameworkDir).second) + { + includeFlags << "-F" << this->ConvertToOutputForExisting(frameworkDir.c_str()) << " "; + } + continue; + } +#endif std::string include = *i; if(!flagUsed || repeatFlag) { |