-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Closed
llvm/llvm-project-release-prs
#460Labels
cmakeBuild system in general and CMake in particularBuild system in general and CMake in particularrelease:backportrelease:merged
Milestone
Description
For instance, when building latest iovisor/bcc
, cmake
complains about a change in the behavior of operator IN_LIST
:
CMake Warning (dev) at /usr/local/lib/cmake/llvm/LLVM-Config.cmake:230 (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):
cmake/clang_libs.cmake:32 (llvm_map_components_to_libnames)
src/cc/CMakeLists.txt:132 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Error at /usr/local/lib/cmake/llvm/LLVM-Config.cmake:230 (if):
if given arguments:
"engine" "IN_LIST" "link_components"
Unknown arguments specified
Call Stack (most recent call first):
cmake/clang_libs.cmake:32 (llvm_map_components_to_libnames)
src/cc/CMakeLists.txt:132 (include)
Setting the policy in LLVM-Config.cmake
fixes the issue.
I'll follow up with a patch soon.
luna-moonfang
Metadata
Metadata
Assignees
Labels
cmakeBuild system in general and CMake in particularBuild system in general and CMake in particularrelease:backportrelease:merged
Type
Projects
Status
Done