upm: Allow to build with CMake 4+

Upstream is inactive, so use the 'minimum policy version' override.

Signed-off-by: Moritz Haase <Moritz.Haase@bmw.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Moritz Haase 2025-07-11 12:00:24 +02:00 committed by Khem Raj
parent c4a6ed4f44
commit 82177b39ec
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -27,7 +27,9 @@ COMPATIBLE_HOST = "(x86_64.*|i.86.*|aarch64.*|arm.*)-linux"
inherit setuptools3-base cmake pkgconfig
EXTRA_OECMAKE += "-UPYTHON_EXECUTABLE -DWERROR=off"
EXTRA_OECMAKE += "-UPYTHON_EXECUTABLE -DWERROR=off \
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
"
# override this in local.conf to get needed bindings.
# BINDINGS:pn-upm="python"