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>
プロジェクトを生成しようとすると、次のエラーで失敗します。
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
cmakexbuild への呼び出しを構成するにはどうすればよいですか? CMake 構成メニューにそれぞれのエントリが見つかりませんでした。
他のプロジェクトの他のユーザーから同様の問題を見つけたので、CMake 構成の問題だと思います。
Mac OS X Lion 10.7.3 で Xcode 4.3 と CMake 2.8.7 を使用しています。
ご協力いただきありがとうございます、
ポール