CMake Xcode生成器使用不再支持的选项

Pau*_*aul 6 xcode generator cmake xcodebuild itk

我正在尝试从Insight Toolkit(ITK,itk.org)制作一个Xcode项目.我向终端发出以下命令:

ccmake -DCMAKE_C_COMPILER=/Applications/Xcode.app/Contents/Developer/usr/bin/gcc -DCMAKE_CXX_COMPILER=/Applications/Xcode.app/Contents/Developer/usr/bin/g++ -GXcode /<path to source>
Run Code Online (Sandbox Code Playgroud)

当我尝试生成项目时,它失败并出现此错误:

CMake Error at /Applications/CMake 2.8-7.app/Contents/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):

The C compiler "/Applications/Xcode.app/Contents/Developer/usr/bin/gcc" is not able to compile a simple test program.

It fails with the following output:

Change Dir: /<path to destination folder>/CMakeFiles/CMakeTmp

Run Build Command:/Applications/CMake\ 2.8-7.app/Contents/bin/cmakexbuild -project CMAKE_TRY_COMPILE.xcode build -target cmTryCompileExec -buildstyle Development

xcodebuild: error: option '-buildstyle' is no longer supported
Run Code Online (Sandbox Code Playgroud)

如何配置对cmakexbuild的调用?我没有在CMake配置菜单中找到相应的条目.

我发现其他用户与其他项目有类似的问题所以我认为这是CMake配置的问题.

我在Mac OS X Lion 10.7.3上使用Xcode 4.3和CMake 2.8.7.

谢谢你的帮助,

保罗

arr*_*owd 5

这是一个CMake错误,它似乎已在开发版本中得到修复:

http://public.kitware.com/Bug/view.php?id=12621