Attached Files | compat-patch.txt [^] (1,203 bytes) 2008-12-07 14:46 [Show Content] [Hide Content]diff -Naur cmake-2.6.2/Source/cmGlobalXCodeGenerator.cxx cmake-cthing-2.6.2/Source/cmGlobalXCodeGenerator.cxx
--- cmake-2.6.2/Source/cmGlobalXCodeGenerator.cxx 2008-09-24 11:34:36.000000000 -0700
+++ cmake-dash-2.6.2/Source/cmGlobalXCodeGenerator.cxx 2008-12-05 00:39:01.000000000 -0800
@@ -2440,6 +2444,21 @@
this->CreateObjectReference(mainGroup));
this->RootObject->AddAttribute("buildSettings", group);
this->RootObject->AddAttribute("buildStyles", listObjs);
+ if(this->XcodeVersion >= 31)
+ {
+ this->RootObject->AddAttribute("compatibilityVersion",
+ this->CreateString("Xcode 3.1"));
+ }
+ else if(this->XcodeVersion >= 30)
+ {
+ this->RootObject->AddAttribute("compatibilityVersion",
+ this->CreateString("Xcode 3.0"));
+ }
+ else if(this->XcodeVersion >= 24)
+ {
+ this->RootObject->AddAttribute("compatibilityVersion",
+ this->CreateString("Xcode 2.4"));
+ }
this->RootObject->AddAttribute("hasScannedForEncodings",
this->CreateString("0"));
// Point Xcode at the top of the source tree.
|