[openwrt/openwrt] treewide: edit local CMakeLists.txt to be compatible with cmake 4.x

LEDE Commits lede-commits at lists.infradead.org
Tue Nov 4 06:15:04 PST 2025


ansuel pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/9bd2c55a3329c82cfd0231f89824a06c031b53b9

commit 9bd2c55a3329c82cfd0231f89824a06c031b53b9
Author: Hannu Nyman <hannu.nyman at iki.fi>
AuthorDate: Tue Oct 7 18:30:01 2025 +0300

    treewide: edit local CMakeLists.txt to be compatible with cmake 4.x
    
    Edit CMakeLists.txt to fulfill cmake 4.0 requirement that
    cmake_minimum_required is now at least 3.5 and in future 3.10.
    
    Signed-off-by: Hannu Nyman <hannu.nyman at iki.fi>
    Link: https://github.com/openwrt/openwrt/pull/20265
    Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
---
 package/network/ipv6/map/src/CMakeLists.txt  | 2 +-
 package/utils/fritz-tools/src/CMakeLists.txt | 2 +-
 package/utils/jboot-tools/src/CMakeLists.txt | 2 +-
 package/utils/uencrypt/src/CMakeLists.txt    | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/package/network/ipv6/map/src/CMakeLists.txt b/package/network/ipv6/map/src/CMakeLists.txt
index a839373022..2d8049af61 100644
--- a/package/network/ipv6/map/src/CMakeLists.txt
+++ b/package/network/ipv6/map/src/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 2.8.1)
+cmake_minimum_required(VERSION 3.10)
 
 project(mapcalc C)
 
diff --git a/package/utils/fritz-tools/src/CMakeLists.txt b/package/utils/fritz-tools/src/CMakeLists.txt
index 85b815712e..9a1f0189be 100644
--- a/package/utils/fritz-tools/src/CMakeLists.txt
+++ b/package/utils/fritz-tools/src/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 2.6)
+cmake_minimum_required(VERSION 3.10)
 
 PROJECT(fritz-tools C)
 ADD_DEFINITIONS(-Wall -Werror --std=gnu99 -Wmissing-declarations)
diff --git a/package/utils/jboot-tools/src/CMakeLists.txt b/package/utils/jboot-tools/src/CMakeLists.txt
index 98fbab38dc..05fbc1b94c 100644
--- a/package/utils/jboot-tools/src/CMakeLists.txt
+++ b/package/utils/jboot-tools/src/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 2.6)
+cmake_minimum_required(VERSION 3.10)
 
 PROJECT(jboot-tools C)
 ADD_DEFINITIONS(-Wall -Werror --std=gnu99 -Wmissing-declarations)
diff --git a/package/utils/uencrypt/src/CMakeLists.txt b/package/utils/uencrypt/src/CMakeLists.txt
index 5e09954f0a..dfab5faacc 100644
--- a/package/utils/uencrypt/src/CMakeLists.txt
+++ b/package/utils/uencrypt/src/CMakeLists.txt
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0-or-later
 # Copyright (C) 2022 Eneas Ulir de Queiroz
 
-cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR)
+cmake_minimum_required(VERSION 3.10)
 project(uencrypt LANGUAGES C)
 
 option(USE_WOLFSSL "Use WolfSSL as crypto provider" OFF)




More information about the lede-commits mailing list