diff options
author | Brad King <brad.king@kitware.com> | 2007-09-10 14:22:19 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2007-09-10 14:22:19 (GMT) |
commit | f2ac53bb10889ea27c511634512414bb31cfb4ea (patch) | |
tree | 4e6c342fc9550908f84036a84ed2335415cb4197 /Source/cmGlobalXCodeGenerator.cxx | |
parent | 5dade94eeca771b333465d17ebeb3ec54dfe15c7 (diff) | |
download | CMake-f2ac53bb10889ea27c511634512414bb31cfb4ea.zip CMake-f2ac53bb10889ea27c511634512414bb31cfb4ea.tar.gz CMake-f2ac53bb10889ea27c511634512414bb31cfb4ea.tar.bz2 |
ENH: Added XCODE_ATTRIBUTE_<an-attribute> property to allow direct setting of Xcode target attributes in generated projects. For example, one may set the prefix header property and the corresponding precompiled option to do precompiled headers.
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.cxx')
-rw-r--r-- | Source/cmGlobalXCodeGenerator.cxx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index 2f81f09..6b019e9 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/Source/cmGlobalXCodeGenerator.cxx @@ -1576,6 +1576,21 @@ 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", |