Skip to contentSkip to conversation

package/spirv-llvm-translator: set CMP0077 policy

PATCH In review James Hilliard 2 participants 2 messages Jun 21, 2022 – Feb 7, 2023

lore
Share & tools
lore
#0 lore raw

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
index 22f8765582..46704b3f8d 100644
@@ -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
#1 lore raw
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 the cmake_policy command 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)

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
index 22f8765582..46704b3f8d 100644

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