Insight Toolkit(ITK、itk.org)からXcodeプロジェクトを作成しようとしています。私は、端末に以下のコマンドを発行:CMake 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を使用しています。あなたの助けのための
おかげで、
ポール
私たちは、cmake v2.8.7-860-g32e0b19とv2.8.7-3470-g19f003f(マスターと次のgit://cmake.org/cmake.gitを2012-04-18までに構築)を試みましたが、いずれも正しく機能していない。そしてそれはレポートが適用されるべきでないXCode 4.2です。 –
これは2.8.10で修正されているようです。 – kjw0188