From 60c7d0de576f584b6adf2964a34ea5c5172f81a4 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sat, 12 Jul 2025 16:09:08 -0700 Subject: nngpp: Fix build with cmake4 Signed-off-by: Khem Raj --- .../0001-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 (limited to 'meta-networking') 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 +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 +--- + 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 -- cgit v1.2.3-54-g00ecf