[cmake-developers] [CMake 0013144]: Compatibility with Xcode 4.2 (Build 4C199)

Mantis Bug Tracker mantis at public.kitware.com
Wed Apr 18 11:13:31 EDT 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=13144 
====================================================================== 
Reported By:                Lukas Mezera
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13144
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2012-04-18 11:13 EDT
Last Modified:              2012-04-18 11:13 EDT
====================================================================== 
Summary:                    Compatibility with Xcode 4.2 (Build 4C199)
Description: 
I try to compile my project using CMake (cmake v2.8.7-860-g32e0b19 - master and
v2.8.7-3470-g19f003f  - next) and Xcode 4.2. Mac OS X 10.6.8. 

The build ended with error "xcodebuild: error: option '-buildstyle' is no longer
supported". Whole log is attached as Additional Information.

I think that this problem is related to
http://public.kitware.com/Bug/view.php?id=12621

Note: I am able to test everything what you need.

Additional Information: 
/Users/lukasmezera/cmake/bin/cmake -G Xcode ..
-- The C compiler identification is GNU 4.2.1
-- The CXX compiler identification is GNU 4.2.1
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler using: Xcode
-- Check for working C compiler using: Xcode -- broken
CMake Error at
/Users/lukasmezera/cmake/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52
(MESSAGE):
  The C compiler "/usr/bin/gcc" is not able to compile a simple test program.

  It fails with the following output:

   Change Dir: /iPhoneCheckout/iPhone/bin/CMakeFiles/CMakeTmp

  

  Run Build Command:/Users/lukasmezera/cmake/bin/cmakexbuild -project
  CMAKE_TRY_COMPILE.xcode build -target cmTryCompileExec3550203041
  -buildstyle Development

  xcodebuild: error: option '-buildstyle' is no longer supported

  

  Usage: xcodebuild [-project <projectname>] [[-target
  <targetname>]...|-alltargets] [-configuration <configurationname>] [-arch
  <architecture>]...  [-sdk [<sdkname>|<sdkpath>]]
  [<buildsetting>=<value>]...  [<buildaction>]...

         xcodebuild [-project <projectname>] -scheme <schemeName>
[-configuration <configurationname>] [-arch <architecture>]... [-sdk
[<sdkname>|<sdkpath>]] [<buildsetting>=<value>]... [<buildaction>]...
         xcodebuild -workspace <workspacename> -scheme <schemeName>
[-configuration <configurationname>] [-arch <architecture>]... [-sdk
[<sdkname>|<sdkpath>]] [<buildsetting>=<value>]... [<buildaction>]...
         xcodebuild -version [-sdk [<sdkfullpath>|<sdkname>] [<infoitem>] ]
         xcodebuild -list [[-project <projectname>]|[-workspace
<workspacename>]]
         xcodebuild -showsdks

  Options:

      -usage                print full usage
      -verbose              provide additional status output
      -project NAME         build the project NAME
      -target NAME          build the target NAME
      -alltargets           build all targets
      -workspace NAME       build the workspace NAME
      -scheme NAME          build the scheme NAME
      -configuration NAME   use the build configuration NAME for building each
target
      -xcconfig PATH        apply the build settings defined in the file at PATH
as overrides
      -arch ARCH            build each target for the architecture ARCH; this
will override architectures defined in the project
      -sdk SDK              use SDK as the name or path of the base SDK when
building the project
      -parallelizeTargets   build independent targets in parallel
      -jobs NUMBER          specify the maximum number of concurrent build
operations
      -showsdks             display a compact list of the installed SDKs
      -list                 lists the targets and configurations in a project,
or the schemes in a workspace
      -find BINARY          display the full path to BINARY in the provided SDK
      -version              display the version of Xcode; with -sdk will display
info about one or all installed SDKs

  

  

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:7 (project)

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-04-18 11:13 Lukas Mezera   New Issue                                    
======================================================================




More information about the cmake-developers mailing list