diff mbox series

[meta-networking,5/7] nngpp: Fix build with cmake4

Message ID 20250713063023.3538218-5-raj.khem@gmail.com
State New
Headers show
Series [meta-oe,1/7] wxwidgets: Enable webui and mediactrl packageconfigs by default | expand

Commit Message

Khem Raj July 13, 2025, 6:30 a.m. UTC
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 ...1-cmake-Bump-minimum-version-to-3.10.patch | 25 +++++++++++++++++++
 .../recipes-connectivity/nanomsg/nngpp_git.bb | 10 ++++----
 2 files changed, 30 insertions(+), 5 deletions(-)
 create mode 100644 meta-networking/recipes-connectivity/nanomsg/nngpp/0001-cmake-Bump-minimum-version-to-3.10.patch
diff mbox series

Patch

diff --git a/meta-networking/recipes-connectivity/nanomsg/nngpp/0001-cmake-Bump-minimum-version-to-3.10.patch b/meta-networking/recipes-connectivity/nanomsg/nngpp/0001-cmake-Bump-minimum-version-to-3.10.patch
new file mode 100644
index 0000000000..170d799502
--- /dev/null
+++ b/meta-networking/recipes-connectivity/nanomsg/nngpp/0001-cmake-Bump-minimum-version-to-3.10.patch
@@ -0,0 +1,25 @@ 
+From c5004770784dc5ff80b88487de38c22275a7960a Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+Date: Sat, 12 Jul 2025 16:04:38 -0700
+Subject: [PATCH] cmake: Bump minimum version to 3.10
+
+Cmake4+ has dropped support for cmake < 3.5 [1]
+
+[1] https://cmake.org/cmake/help/latest/release/4.0.html#deprecated-and-removed-features
+
+Upstream-Status: Submitted [https://github.com/cwzx/nngpp/pull/38]
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index caa7145..45a5ad5 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-cmake_minimum_required (VERSION 3.1)
++cmake_minimum_required (VERSION 3.10)
+ project(nngpp CXX)
+ 
+ include(GNUInstallDirs)
diff --git a/meta-networking/recipes-connectivity/nanomsg/nngpp_git.bb b/meta-networking/recipes-connectivity/nanomsg/nngpp_git.bb
index aac26966f1..81a85a7e27 100644
--- a/meta-networking/recipes-connectivity/nanomsg/nngpp_git.bb
+++ b/meta-networking/recipes-connectivity/nanomsg/nngpp_git.bb
@@ -4,10 +4,10 @@  LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://license.txt;md5=6d17d78c3597e0d4452fb1c63bf7c58e"
 DEPENDS = "nng"
 
-SRCREV = "cc5d2641babab165d8a9943817c46d36c6dc17c2"
-PV = "1.3.0"
-
-SRC_URI = "git://github.com/cwzx/nngpp;branch=master;protocol=https"
-
+SRCREV = "8da8c026bd551b7685a8a140909ff96cfe91bf90"
+PV = "1.3.0+git"
+SRC_URI = "git://github.com/cwzx/nngpp;branch=master;protocol=https \
+           file://0001-cmake-Bump-minimum-version-to-3.10.patch \
+          "
 
 inherit cmake