【发布时间】:2018-04-20 07:59:04
【问题描述】:
我想通过cmake构建llvm,
我使用cmake -G Xcode ../llvm -DCMAKE_BUILD_TYPE:STRING=MinSizeRel。
但我有麻烦了。
错误日志是:
CMake Deprecation Warning at CMakeLists.txt:14 (cmake_policy):
The OLD behavior for policy CMP0051 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- The ASM compiler identification is unknown
-- Found assembler: /Library/Developer/CommandLineTools/usr/bin/cc
CMake Error at CMakeLists.txt:45 (project):
No CMAKE_C_COMPILER could be found.
CMake Error at CMakeLists.txt:45 (project):
No CMAKE_CXX_COMPILER could be found.
-- Warning: Did not find file Compiler/-ASM
-- Configuring incomplete, errors occurred!
另外,我也用xcrun -find cc,结果是/Library/Developer/CommandLineTools/usr/bin/cc
我能做什么?请帮忙
【问题讨论】:
标签: macos compiler-errors cmake