Index: Source/cmGlobalXCodeGenerator.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmGlobalXCodeGenerator.cxx,v
retrieving revision 1.218
diff -u -p -r1.218 cmGlobalXCodeGenerator.cxx
--- Source/cmGlobalXCodeGenerator.cxx	10 Jul 2009 20:51:44 -0000	1.218
+++ Source/cmGlobalXCodeGenerator.cxx	22 Jul 2009 05:47:22 -0000
@@ -2581,8 +2581,18 @@ void cmGlobalXCodeGenerator
   {
   std::string proot = root->GetMakefile()->GetCurrentDirectory();
   proot = this->ConvertToRelativeForXCode(proot.c_str());
-  this->RootObject->AddAttribute("projectRoot",
-                                 this->CreateString(proot.c_str()));
+  if (this->XcodeVersion >= 30) 
+    {
+    this->RootObject->AddAttribute("projectRoot",
+                                   this->CreateString(""));
+    this->RootObject->AddAttribute("projectDirPath",
+                                   this->CreateString(proot.c_str()));
+    }
+  else
+    {
+    this->RootObject->AddAttribute("projectRoot",
+                                   this->CreateString(proot.c_str()));
+    }
   }
   cmXCodeObject* configlist = 
     this->CreateObject(cmXCodeObject::XCConfigurationList);
