diff mbox series

[meta-oe,04/10] czmq: Allow to build with CMake 4+

Message ID 20250714112642.121146-4-Moritz.Haase@bmw.de
State Under Review
Headers show
Series [meta-oe,01/10] leveldb: Disable ptests to allow to build with CMake 4+ | expand

Commit Message

Haase Moritz, JD-62 July 14, 2025, 11:26 a.m. UTC
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]: https://github.com/zeromq/czmq/commit/00d7750304f1c144f47225274b22ea8d638641ed
[1]: https://github.com/zeromq/czmq/commit/53b46d63b41c51e32b5d539aa78ca91846f6a2a1

Signed-off-by: Moritz Haase <Moritz.Haase@bmw.de>
---
 meta-oe/recipes-connectivity/zeromq/czmq_4.2.1.bb | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/meta-oe/recipes-connectivity/zeromq/czmq_4.2.1.bb b/meta-oe/recipes-connectivity/zeromq/czmq_4.2.1.bb
index 33a339f5c3..9a71c2e0eb 100644
--- a/meta-oe/recipes-connectivity/zeromq/czmq_4.2.1.bb
+++ b/meta-oe/recipes-connectivity/zeromq/czmq_4.2.1.bb
@@ -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/"} \
 "