From b3670c276574290e9e58f1587b150d7eff76a2cc Mon Sep 17 00:00:00 2001 From: Yogesh Tyagi Date: Wed, 9 Jul 2025 13:09:38 +0800 Subject: gmmlib: 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 intel-media-driver is upgraded to include the fix [2]. [1] https://patchwork.yoctoproject.org/project/oe-core/cover/20250703132720.3378569-1-Moritz.Haase@bmw.de/ [2] https://github.com/intel/gmmlib/commit/af5f033fbe71da454953e04db9804443e2cec74 Signed-off-by: Yogesh Tyagi Signed-off-by: Anuj Mittal --- recipes-graphics/gmmlib/gmmlib_22.7.1.bb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/recipes-graphics/gmmlib/gmmlib_22.7.1.bb b/recipes-graphics/gmmlib/gmmlib_22.7.1.bb index d61a2fa1..77c5e217 100644 --- a/recipes-graphics/gmmlib/gmmlib_22.7.1.bb +++ b/recipes-graphics/gmmlib/gmmlib_22.7.1.bb @@ -18,6 +18,9 @@ UPSTREAM_CHECK_GITTAGREGEX = "^intel-gmmlib-(?P(\d+(\.\d+)+))$" inherit pkgconfig cmake -EXTRA_OECMAKE += "-DRUN_TEST_SUITE=OFF" +EXTRA_OECMAKE += " \ + -DRUN_TEST_SUITE=OFF \ + -DCMAKE_POLICY_VERSION_MINIMUM=3.5 \ + " BBCLASSEXTEND = "native nativesdk" -- cgit v1.2.3-54-g00ecf