MantisBT - CMake
View Issue Details
0013353CMakeCMakepublic2012-06-26 16:482013-01-09 10:55
Grant Limberg 
David Cole 
normalmajoralways
closedno change required 
Apple Mac OSOS X10.8 DP4
CMake 2.8.8 
CMake 2.8.9CMake 2.8.9 
0013353: xcodebuild no longer recognizes the -buildstyle argument
As of Xcode 4.4 Developer Previews, xcodebuild no longer supports the -buildstyle argument. A new method for generating Xcode builds is needed.
1) Install Mountain Lion Developer Preview 4 and Xcode 4.4 Developer Preview 6.
2) Try to generate an Xcode based project... Kaboom
No tags attached.
Issue History
2012-06-26 16:48Grant LimbergNew Issue
2012-06-26 18:21David ColeNote Added: 0029842
2012-08-03 00:15Grant LimbergNote Added: 0030160
2012-08-07 13:29David ColeAssigned To => David Cole
2012-08-07 13:29David ColeStatusnew => assigned
2012-08-07 13:29David ColeNote Added: 0030185
2012-08-07 13:29David ColeStatusassigned => resolved
2012-08-07 13:29David ColeFixed in Version => CMake 2.8.9
2012-08-07 13:29David ColeResolutionopen => no change required
2012-08-09 17:19David ColeTarget Version => CMake 2.8.9
2013-01-09 10:55Robert MaynardNote Added: 0032026
2013-01-09 10:55Robert MaynardStatusresolved => closed

Notes
(0029842)
David Cole   
2012-06-26 18:21   
No worries... It's basically a false error message. The only place we generate "-buildstyle" is when we think it's an Xcode version 1.5 installation:

$ git grep -C 2 -Ei "\-buildstyle"
Source/cmGlobalXCodeGenerator.cxx- if(this->XcodeVersion == 15)
Source/cmGlobalXCodeGenerator.cxx- {
Source/cmGlobalXCodeGenerator.cxx: makeCommand += " -buildstyle Development ";
Source/cmGlobalXCodeGenerator.cxx- }
Source/cmGlobalXCodeGenerator.cxx- else

The same thing happened with the recent Xcode 4.3 installations.

We'll just have to add some code to recognize the new Xcode (hopefully) and then we won't generate calls with "-buildstyle" in them anymore...
(0030160)
Grant Limberg   
2012-08-03 00:15   
Looks like it's no longer an issue with the final release of Xcode 4.4 and OS X 10.8. This issue can be closed.
(0030185)
David Cole   
2012-08-07 13:29   
Resolving issue as "no change required" : see reporter's last comment...
(0032026)
Robert Maynard   
2013-01-09 10:55   
Closing resolved issues that have not been updated in more than 4 months.