Policy CMP0057 Warning and Error
When I build the umr use cmake, the following issue occurred:
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): CMakeLists.txt:80 (LLVM_MAP_COMPONENTS_TO_LIBNAMES) 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): CMakeLists.txt:80 (LLVM_MAP_COMPONENTS_TO_LIBNAMES)
I use cmake version is 3.22.1, the CMP0057 maybe removed. So I suggessed adding the following policy support to the CMakeLists.txt file:
cmake_policy(SET CMP0057 NEW)
Sincerely