我收到以下消息时,我运行LLVM /铛的cmake:cmake的错误建设LLVM/MacOS的
-- Performing Test COMPILER_RT_TARGET_HAS_ATOMICS - Success
CMake Error at cmake/modules/AddLLVM.cmake:589 (if):
if given arguments:
"LTO" "IN_LIST" "LLVM_DISTRIBUTION_COMPONENTS" "OR" "NOT" "LLVM_DISTRIBUTION_COMPONENTS"
Unknown arguments specified
Call Stack (most recent call first):
tools/lto/CMakeLists.txt:19 (add_llvm_library)
-- Configuring incomplete, errors occurred!
这里是我使用的命令:
的cmake -G “Unix的Makefile文件” -DCMAKE_BUILD_TYPE =释放 -DLLVM_ENABLE_LTO =在-Wno-dev的..
几个月前,我成功地建立了LLVM /铛5.0。但今天,我在各种目录和子目录上做了一个“git pull”以获取最新的更改。
此外,我更新了我的cmake到3.8.2。但是这并没有帮助。
每通过这里评论者的请求是没有no-dev
选项的输出:
-- Performing Test COMPILER_RT_TARGET_HAS_ATOMICS - Success
CMake Warning (dev) at cmake/modules/AddLLVM.cmake:589 (if):
Policy CMP0057 is not set: Support new IN_LIST if() operator. Run "cmake
--help-policy CMP0057" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
IN_LIST will be interpreted as an operator when the policy is set to NEW.
Since the policy is not set the OLD behavior will be used.
Call Stack (most recent call first):
tools/lto/CMakeLists.txt:19 (add_llvm_library)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Error at cmake/modules/AddLLVM.cmake:589 (if):
if given arguments:
"LTO" "IN_LIST" "LLVM_DISTRIBUTION_COMPONENTS" "OR" "NOT" "LLVM_DISTRIBUTION_COMPONENTS"
Unknown arguments specified
Call Stack (most recent call first):
tools/lto/CMakeLists.txt:19 (add_llvm_library)
选项'Wno-dev'禁用警告,这可能会导致错误提示。 (可能''IN_LIST'不支持'cmake_minimum_required'中指定的版本。)不带此选项运行'cmake'。 – Tsyvarev
@Tsyvarev:我已经更新了我的问题,并列出了没有'no-dev'选项的输出。 – Tal