czmq: Allow to build with CMake 4+

There hasn't been an upstream release in four years. Latest HEAD supports builds
with CMake 4+, but the corresponding patches at [0] and [1] are considered to be
too invasive to backport. Instead, apply the 'minimum policy version' override.

[0]: 00d7750304
[1]: 53b46d63b4

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-14 13:26:29 +02:00 committed by Khem Raj
parent 27eab454a6
commit 854a178ac2
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -16,6 +16,7 @@ inherit cmake pkgconfig
PACKAGES = "lib${BPN} lib${BPN}-dev lib${BPN}-staticdev ${PN} ${PN}-dbg"
EXTRA_OECMAKE = " \
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
-DCMAKECONFIG_INSTALL_DIR:PATH=${@os.path.relpath(d.getVar('libdir'), d.getVar('prefix') + '/') + "/cmake/"} \
"