MantisBT - CMake
View Issue Details
0008313CMakeCMakepublic2008-12-18 01:422016-06-10 14:30
Baron L. Roberts 
Bill Hoffman 
normalmajoralways
closedmoved 
CMake-2-6 
 
0008313: Cannot use SCM with CMake generated XCode projects
XCode projects generated using CMake 2.6.2 cannot be used with source control because the projectRoot attribute is set to the path to the project file. While that might appear to be the correct setting, it turns out that this attribute must be set to the empty string in order to manage the files in the project using SCM. In order to allow the project file to be located somewhere in the tree other than the root, the projectDirPath attribute must be set to the root of the source tree. The attached patch sets projectRoot to "" and projectDirPath to the proot value. I do this only for XCode 3.1 and higher because I cannot test any of the older versions and so assume that the existing behavior should be unchanged.
No tags attached.
patch projectRoot.patch (1,012) 2008-12-18 01:42
https://public.kitware.com/Bug/file/1931/projectRoot.patch
patch projectRoot-2.patch (1,214) 2009-07-22 01:48
https://public.kitware.com/Bug/file/2375/projectRoot-2.patch
Issue History
2008-12-18 01:42Baron L. RobertsNew Issue
2008-12-18 01:42Baron L. RobertsFile Added: projectRoot.patch
2009-02-03 11:39Bill HoffmanStatusnew => assigned
2009-02-03 11:39Bill HoffmanAssigned To => Bill Hoffman
2009-07-22 01:48Doug GregorFile Added: projectRoot-2.patch
2009-07-22 01:49Doug GregorNote Added: 0016929
2011-08-27 12:33Johan BjörkNote Added: 0027274
2016-06-10 14:27Kitware RobotNote Added: 0041484
2016-06-10 14:27Kitware RobotStatusassigned => resolved
2016-06-10 14:27Kitware RobotResolutionopen => moved
2016-06-10 14:30Kitware RobotStatusresolved => closed

Notes
(0016929)
Doug Gregor   
2009-07-22 01:49   
Updated patch against today's CVS. Please apply: this is a good (albeit minor) step forward for Xcode support.
(0027274)
Johan Björk   
2011-08-27 12:33   
I wonder how it interacts with the XCode 4 git support, anyone tried?
(0041484)
Kitware Robot   
2016-06-10 14:27   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.