View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007044CMakeCMakepublic2008-05-18 23:352008-07-07 10:58
ReporterEric Wing 
Assigned ToBrad King 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake-2-6 
Target VersionFixed in Version 
Summary0007044: Xcode 3 generator: "Select the directory to use as the project root."
DescriptionXcode 3 slightly modified the Xcode file format again. Every time a new Xcode 2.x project is opened in Xcode 3 for the first time, it prompts you to "Select the directory to use as the project root.". This is very annoying, especially when you need to regenerate/update the Xcode via CMake because it will prompt you again. It would be great if you can fix this.

Attached is a simple project.

The .original project is what CMake originally generated (renamed by me) and the other project is after Xcode 3 loads the project and I pick a project root. You should be able to run a diff on the two underlying files

One quirk, I noticed the Xcode GUI doesn't let you pick any directory that is a sibling of where the Xcode project resides. So in this case, I can't pick the HelloWorld/ directory as the project root. I can only pick the parent directory.

As for what the project root directory should be, I'm thinking it might be CMAKE_SOURCE_DIR. For Xcode, I think the root is supposed to be where the top-level .svn directory is. I think this is used by Xcode's native SCM support.

TagsNo tags attached.
Attached Filesgz file icon Hello.tar.gz [^] (30,946 bytes) 2008-05-18 23:35

 Relationships
related to 0008481closedBrad King Xcode: Breakpoints are ignored in CMake generated projects in Xcode debugger 

  Notes
(0011988)
Bill Hoffman (manager)
2008-05-19 07:58

Strange, I have tried CMake on Xcode 3 and not had this problem. I suspect it is some global setting that you have done in your Xcode 3 install. The project files do not seem to have any version strings in them. Nothing really significant is different other than the usual reformatting that happens when a CMake project is re-written by Xcode.
(0011997)
Bill Hoffman (manager)
2008-05-19 11:29

OK, I see it now:


                        526C70526C70526C70000000 /* Project object */ = {
                        isa = PBXProject;
                        buildConfigurationList = 528F00528F00528F00000000 /* Build configuration list for PBXProject "HelloWorld
" */;
                        compatibilityVersion = "Xcode 2.4";
                        hasScannedForEncodings = 0;
                        mainGroup = 531B20531B20531B20000000;
                        projectDirPath = "";
                        projectRoot = ..;
                        targets = (
                                5337B05337B05337B0000000 /* ALL_BUILD */,
                                53DB3053DB3053DB30000000 /* HelloWorld */,
                        );
                };

I will have to experiment on some Xcode 3 machines.
(0012635)
Brad King (manager)
2008-07-07 10:57

Fixed:

/cvsroot/CMake/CMake/Source/cmGlobalXCodeGenerator.cxx,v <-- Source/cmGlobalXCodeGenerator.cxx
new revision: 1.193; previous revision: 1.192

The project root now points at the top-level source directory.
(0012636)
Brad King (manager)
2008-07-07 10:58

We'll include this fix in the 2.6 branch.

 Issue History
Date Modified Username Field Change
2008-05-18 23:35 Eric Wing New Issue
2008-05-18 23:35 Eric Wing File Added: Hello.tar.gz
2008-05-19 07:58 Bill Hoffman Note Added: 0011988
2008-05-19 11:29 Bill Hoffman Note Added: 0011997
2008-07-07 10:49 Brad King Status new => assigned
2008-07-07 10:49 Brad King Assigned To => Brad King
2008-07-07 10:57 Brad King Note Added: 0012635
2008-07-07 10:58 Brad King Status assigned => closed
2008-07-07 10:58 Brad King Note Added: 0012636
2008-07-07 10:58 Brad King Resolution open => fixed
2009-09-22 10:22 Brad King Relationship added related to 0008481


Copyright © 2000 - 2018 MantisBT Team