ENH: make sure default /System framework is not added with -F

This commit is contained in:
Bill Hoffman 2007-03-30 10:53:02 -04:00
parent 32ab3853ee
commit 5ed2141d12
3 changed files with 5 additions and 0 deletions

View File

@ -1287,6 +1287,7 @@ void cmGlobalXCodeGenerator::CreateBuildSettings(cmTarget& target,
std::vector<std::string>::iterator i = includes.begin();
std::string fdirs;
std::set<cmStdString> emitted;
emitted.insert("/System/Library/Frameworks");
for(;i != includes.end(); ++i)
{
if(cmSystemTools::IsPathToFramework(i->c_str()))

View File

@ -1084,6 +1084,9 @@ const char* cmLocalGenerator::GetIncludeFlags(const char* lang)
bool flagUsed = false;
std::set<cmStdString> emitted;
#ifdef __APPLE__
emitted.insert("/System/Library/Frameworks");
#endif
for(i = includes.begin(); i != includes.end(); ++i)
{
#ifdef __APPLE__

View File

@ -1116,6 +1116,7 @@ std::string cmMakefileTargetGenerator::GetFrameworkFlags()
return std::string();
#else
std::set<cmStdString> emitted;
emitted.insert("/System/Library/Frameworks");
std::vector<std::string> includes;
this->LocalGenerator->GetIncludeDirectories(includes);
std::vector<std::string>::iterator i;