summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalXCodeGenerator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-10-02 17:49:32 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-10-02 17:49:32 (GMT)
commit600470e5ca9e7a4041f173b8e91d777cd72c6166 (patch)
treebf77f82f32211b1fc10bf481ced35f0de3fd3d63 /Source/cmGlobalXCodeGenerator.cxx
parent9d6cec87e093592fe6cc4da666b05faf7f58cb48 (diff)
downloadCMake-600470e5ca9e7a4041f173b8e91d777cd72c6166.zip
CMake-600470e5ca9e7a4041f173b8e91d777cd72c6166.tar.gz
CMake-600470e5ca9e7a4041f173b8e91d777cd72c6166.tar.bz2
BUG: 7763 fix, OPTIMIZATION was not set right. Also fix for BUG 7764, put XCODE_ATTRIBUTES_ last
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.cxx')
-rw-r--r--Source/cmGlobalXCodeGenerator.cxx30
1 files changed, 14 insertions, 16 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx
index b817728..b18fc33 100644
--- a/Source/cmGlobalXCodeGenerator.cxx
+++ b/Source/cmGlobalXCodeGenerator.cxx
@@ -1618,26 +1618,10 @@ void cmGlobalXCodeGenerator::CreateBuildSettings(cmTarget& target,
debugStr = "NO";
}
- // Convert "XCODE_ATTRIBUTE_*" properties directly.
- {
- cmPropertyMap const& props = target.GetProperties();
- for(cmPropertyMap::const_iterator i = props.begin();
- i != props.end(); ++i)
- {
- if(i->first.find("XCODE_ATTRIBUTE_") == 0)
- {
- buildSettings->AddAttribute(i->first.substr(16).c_str(),
- this->CreateString(i->second.GetValue()));
- }
- }
- }
-
buildSettings->AddAttribute("GCC_GENERATE_DEBUGGING_SYMBOLS",
this->CreateString(debugStr));
buildSettings->AddAttribute("GCC_OPTIMIZATION_LEVEL",
this->CreateString(optLevel));
- buildSettings->AddAttribute("OPTIMIZATION_CFLAGS",
- this->CreateString(oflagc.c_str()));
buildSettings->AddAttribute("GCC_SYMBOLS_PRIVATE_EXTERN",
this->CreateString("NO"));
buildSettings->AddAttribute("GCC_INLINES_ARE_PRIVATE_EXTERN",
@@ -1730,6 +1714,20 @@ void cmGlobalXCodeGenerator::CreateBuildSettings(cmTarget& target,
buildSettings->AddAttribute("DYLIB_COMPATIBILITY_VERSION",
this->CreateString(vso.str().c_str()));
}
+ // put this last so it can override existing settings
+ // Convert "XCODE_ATTRIBUTE_*" properties directly.
+ {
+ cmPropertyMap const& props = target.GetProperties();
+ for(cmPropertyMap::const_iterator i = props.begin();
+ i != props.end(); ++i)
+ {
+ if(i->first.find("XCODE_ATTRIBUTE_") == 0)
+ {
+ buildSettings->AddAttribute(i->first.substr(16).c_str(),
+ this->CreateString(i->second.GetValue()));
+ }
+ }
+ }
}
//----------------------------------------------------------------------------