package/spirv-llvm-translator: set CMP0077 policy
PATCH 1/1 package/spirv-llvm-translator: set CMP0077 policy
Set this to the new behavior for consistency.
Fixes:
CMake Warning (dev) at /home/buildroot/buildroot/output/per-package/host-spirv-llvm-translator/host/lib/cmake/llvm/HandleLLVMOptions.cmake:852 (option):
Policy CMP0077 is not set: option() honors normal variables. Run "cmake
--help-policy CMP0077" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
For compatibility with older versions of CMake, option is clearing the normal variable 'LLVM_ENABLE_EH'.
Call Stack (most recent call first):
CMakeLists.txt:53 (include)
--- package/spirv-llvm-translator/spirv-llvm-translator.mk | 1 + 1 file changed, 1 insertion(+)
package/spirv-llvm-translator/spirv-llvm-translator.mk +1 -0
@@ -10,6 +10,7 @@ SPIRV_LLVM_TRANSLATOR_LICENSE = NCSA SPIRV_LLVM_TRANSLATOR_LICENSE_FILES = LICENSE.TXT HOST_SPIRV_LLVM_TRANSLATOR_DEPENDENCIES = host-clang host-llvm HOST_SPIRV_LLVM_TRANSLATOR_CONF_OPTS = \ + -DCMAKE_POLICY_DEFAULT_CMP0077=NEW \ -DLLVM_BUILD_TOOLS=ON \ -DLLVM_DIR=$(HOST_DIR)/lib/cmake/llvm \ -DLLVM_SPIRV_BUILD_EXTERNAL=YES \
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 8 lines · James Hilliard
Set this to the new behavior for consistency.
Fixes:
CMake Warning (dev) at/home/buildroot/buildroot/output/per-package/host-spirv-llvm-translator/host/lib/cmake/llvm/HandleLLVMOptions.cmake:852(option):
Policy CMP0077 is not set:option()honors normal variables. Run "cmake
--help-policy CMP0077" for policy details. Use thecmake_policycommand to
set the policy and suppress this warning.
Quoted 6 lines
For compatibility with older versions of CMake, option is clearing the normal variable '
LLVM_ENABLE_EH'.
Call Stack (most recent call first):
CMakeLists.txt:53 (include)Signed-off-by James Hilliard <[email protected]>
AFAIU, this change has become irrelevant with one of the two updates to
spirv-llvm-translator that have been committed since this patch was sent. Therefore, I marked it as Superseded.
Regards,
Arnout
Quoted 9 lines
--- package/spirv-llvm-translator/spirv-llvm-translator.mk | 1 + 1 file changed, 1 insertion(+)package/spirv-llvm-translator/spirv-llvm-translator.mk +0
-0
package/spirv-llvm-translator/spirv-llvm-translator.mk SPIRV_LLVM_TRANSLATOR_LICENSE = NCSA · line 16
Quoted 7 lines
package/spirv-llvm-translator/spirv-llvm-translator.mk +1
-0@@ -10,6 +10,7 @@ SPIRV_LLVM_TRANSLATOR_LICENSE = NCSA SPIRV_LLVM_TRANSLATOR_LICENSE_FILES = LICENSE.TXT HOST_SPIRV_LLVM_TRANSLATOR_DEPENDENCIES = host-clang host-llvm HOST_SPIRV_LLVM_TRANSLATOR_CONF_OPTS = \ + -DCMAKE_POLICY_DEFAULT_CMP0077=NEW \ -DLLVM_BUILD_TOOLS=ON \ -DLLVM_DIR=$(HOST_DIR)/lib/cmake/llvm \ -DLLVM_SPIRV_BUILD_EXTERNAL=YES \
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot