libnatpmp: adjust for cmake 4.x compatibility

Adjust for cmake 4.x compatibility

fixes: #27816

Signed-off-by: Andy Chiang <AndyChiang_git@outlook.com>
This commit is contained in:
Andy Chiang
2025-11-10 08:26:56 +07:00
committed by Hannu Nyman
parent 002bdc4c83
commit d8456186ec
2 changed files with 21 additions and 1 deletions

View File

@@ -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

View File

@@ -0,0 +1,20 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Andy Chiang <AndyChiang_git@outlook.com>
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 <AndyChiang_git@outlook.com>
---
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)