diff options
author | Brad King <brad.king@kitware.com> | 2009-06-29 17:02:05 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-06-29 17:02:05 (GMT) |
commit | f33a27abd6c6ea38ea2dae28050d2f6f8b6ae820 (patch) | |
tree | c0dea3282e980f8b0d6ea826098e77f3e56a81c2 /Source/cmGlobalXCode21Generator.cxx | |
parent | fb81cd93f01cf7d71498a9acd9946ce225dff1a5 (diff) | |
download | CMake-f33a27abd6c6ea38ea2dae28050d2f6f8b6ae820.zip CMake-f33a27abd6c6ea38ea2dae28050d2f6f8b6ae820.tar.gz CMake-f33a27abd6c6ea38ea2dae28050d2f6f8b6ae820.tar.bz2 |
ENH: Generate native Xcode 3.0 and 3.1 projects
CMake previously generated Xcode project files labeled as 2.4-compatible
by recent versions of Xcode (3.0 and 3.1). It is better to generate
native Xcode 3.0 and 3.1 projects. In particular, this can improve
build times by using the "Build independent targets in parallel"
feature.
Patch from Doug Gregor. See issue #9216.
Diffstat (limited to 'Source/cmGlobalXCode21Generator.cxx')
-rw-r--r-- | Source/cmGlobalXCode21Generator.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/cmGlobalXCode21Generator.cxx b/Source/cmGlobalXCode21Generator.cxx index 82aa52a..3d55ca1 100644 --- a/Source/cmGlobalXCode21Generator.cxx +++ b/Source/cmGlobalXCode21Generator.cxx @@ -38,7 +38,12 @@ cmGlobalXCode21Generator::WriteXCodePBXProj(std::ostream& fout, cmXCode21Object::Indent(1, fout); fout << "};\n"; cmXCode21Object::Indent(1, fout); - fout << "objectVersion = 42;\n"; + if (this->XcodeVersion >= 31) + fout << "objectVersion = 45;\n"; + else if (this->XcodeVersion >= 30) + fout << "objectVersion = 44;\n"; + else + fout << "objectVersion = 42;\n"; cmXCode21Object::PrintList(this->XCodeObjects, fout); cmXCode21Object::Indent(1, fout); fout << "rootObject = " << this->RootObject->GetId() |