diff options
author | Brad King <brad.king@kitware.com> | 2010-12-17 13:41:32 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2010-12-17 13:41:32 (GMT) |
commit | f7d525e3a679d6fef40e3b5f9345201a85362f44 (patch) | |
tree | 1c23399a5138404be265046395e63084f84b635c /Source/cmGlobalXCodeGenerator.cxx | |
parent | d11c70295b072d19c90c3e5d415d27de10253615 (diff) | |
download | CMake-f7d525e3a679d6fef40e3b5f9345201a85362f44.zip CMake-f7d525e3a679d6fef40e3b5f9345201a85362f44.tar.gz CMake-f7d525e3a679d6fef40e3b5f9345201a85362f44.tar.bz2 |
Xcode: Generate native 3.2 projects
Set objectVersion = 46; compatibilityVersion = "Xcode 3.2" when
Xcode 3.2 is detected.
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.cxx')
-rw-r--r-- | Source/cmGlobalXCodeGenerator.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index 29c2d06..cc6c686 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/Source/cmGlobalXCodeGenerator.cxx @@ -2636,7 +2636,10 @@ void cmGlobalXCodeGenerator group->AddAttribute("BuildIndependentTargetsInParallel", this->CreateString("YES")); this->RootObject->AddAttribute("attributes", group); - if (this->XcodeVersion >= 31) + if (this->XcodeVersion >= 32) + this->RootObject->AddAttribute("compatibilityVersion", + this->CreateString("Xcode 3.2")); + else if (this->XcodeVersion >= 31) this->RootObject->AddAttribute("compatibilityVersion", this->CreateString("Xcode 3.1")); else @@ -3042,7 +3045,9 @@ cmGlobalXCodeGenerator::WriteXCodePBXProj(std::ostream& fout, cmXCodeObject::Indent(1, fout); if(this->XcodeVersion >= 21) { - if (this->XcodeVersion >= 31) + if (this->XcodeVersion >= 32) + fout << "objectVersion = 46;\n"; + else if (this->XcodeVersion >= 31) fout << "objectVersion = 45;\n"; else if (this->XcodeVersion >= 30) fout << "objectVersion = 44;\n"; |