From 585c060c0d3bd379be1160f5a8f2d4e82e472863 Mon Sep 17 00:00:00 2001 From: Yogesh Tyagi Date: Thu, 24 Jul 2025 14:04:06 +0800 Subject: [PATCH] opencl-clang : set a baseline policy version for cmake Cmake upgrade to 4.0+ removes compatibility with versions older than 3.5 [1]. Set a baseline policy version for CMake using CMAKE_POLICY_VERSION_MINIMUM variable until upstream source implements the fix. [1] https://git.yoctoproject.org/poky/commit/?id=2c9a6b4a81b642fc3e6815aa83d1c9bafb56c7db Signed-off-by: Yogesh Tyagi Signed-off-by: Anuj Mittal --- .../clang-layer/recipes-opencl/opencl-clang/opencl-clang.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/dynamic-layers/clang-layer/recipes-opencl/opencl-clang/opencl-clang.inc b/dynamic-layers/clang-layer/recipes-opencl/opencl-clang/opencl-clang.inc index 726b035d..943ddf46 100644 --- a/dynamic-layers/clang-layer/recipes-opencl/opencl-clang/opencl-clang.inc +++ b/dynamic-layers/clang-layer/recipes-opencl/opencl-clang/opencl-clang.inc @@ -23,6 +23,7 @@ EXTRA_OECMAKE += "\ -DLLVM_TABLEGEN_EXE=${STAGING_BINDIR_NATIVE}/llvm-tblgen \ -DCMAKE_SKIP_RPATH=TRUE \ -DPREFERRED_LLVM_VERSION=${LLVMVERSION} \ + -DCMAKE_POLICY_VERSION_MINIMUM=3.5 \ " do_install:append:class-native() {