我已经从官方git存储库中检出了llvm / clang / compiler-rt来源,但我有:
MBA-Anton:llvm_34_xcode_build asmirnov$ cmake -G XCode ../llvm_34
CMake Error: Could not create named generator XCode
LLVM来源:
MBA-Anton:llvm_34_xcode_build asmirnov$ ls ../llvm_34
CMakeLists.txt Makefile.common cmake llvm.spec.in
CODE_OWNERS.TXT Makefile.config.in configure projects
CREDITS.TXT Makefile.rules docs test
LICENSE.TXT README.txt examples tools
LLVMBuild.txt autoconf include unittests
Makefile bindings lib utils
Cmake版本:
MBA-Anton:llvm_34_xcode_build asmirnov$ cmake -version
cmake version 2.8.11.1
根据doc并输出:
,此cmake版本应支持Xcode生成器MBA-Anton:llvm_34_xcode_build asmirnov$ cmake --help
...
Generators
The following generators are available on this platform:
Unix Makefiles = Generates standard UNIX makefiles.
Ninja = Generates build.ninja files (experimental).
Xcode = Generate Xcode project files.
CodeBlocks - Ninja = Generates CodeBlocks project files.
CodeBlocks - Unix Makefiles = Generates CodeBlocks project files.
Eclipse CDT4 - Ninja = Generates Eclipse CDT 4.0 project files.
Eclipse CDT4 - Unix Makefiles
= Generates Eclipse CDT 4.0 project files.
KDevelop3 = Generates KDevelop 3 project files.
KDevelop3 - Unix Makefiles = Generates KDevelop 3 project files.
Sublime Text 2 - Ninja = Generates Sublime Text 2 project files.
Sublime Text 2 - Unix Makefiles
= Generates Sublime Text 2 project files.
答案 0 :(得分:11)
我从未使用过CMake,但从我在你的问题中看到的只是一个区分大小写的问题。
生成器名为Xcode
而不是XCode
。
答案 1 :(得分:0)
我也遇到了这个问题,将Xcode-beta重命名为Xcode后,该问题得以解决