From: Andy Chiang Date: Mon, 10 Nov 2025 01:26:56 +0000 (+0700) Subject: libnatpmp: adjust for cmake 4.x compatibility X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=d8456186ecb6dbbf7a60fa265362782d1598574e;p=feed%2Fpackages.git libnatpmp: adjust for cmake 4.x compatibility Adjust for cmake 4.x compatibility fixes: #27816 Signed-off-by: Andy Chiang --- diff --git a/libs/libnatpmp/Makefile b/libs/libnatpmp/Makefile index 008f21b1e9..cb6da13fcc 100644 --- a/libs/libnatpmp/Makefile +++ b/libs/libnatpmp/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=libnatpmp PKG_VERSION:=20230423 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://miniupnp.tuxfamily.org/files diff --git a/libs/libnatpmp/patches/001-cmake4.patch b/libs/libnatpmp/patches/001-cmake4.patch new file mode 100644 index 0000000000..16b33175b5 --- /dev/null +++ b/libs/libnatpmp/patches/001-cmake4.patch @@ -0,0 +1,20 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Andy Chiang +Date: Mon, 10 Nov 2025 08:40:56 +0700 +Subject: [PATCH] cmake: adjust for cmake 4.x compatibility + +Adjust for cmake 4.x compatibility + +Signed-off-by: Andy Chiang +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 2.8.12) ++cmake_minimum_required(VERSION 3.10) + + if(POLICY CMP0048) + cmake_policy(SET CMP0048 NEW)