mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-20 01:20:35 +08:00
obudpst: fix compatibility with CMake 4
CMake 4 has dropped compatibility with old versions < 3.5, and will drop compatibility for < 3.10 in the future. Update the minimum required CMake version accordingly. Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
From dac144fb25e4aaaf4e965f066113dc265d0ee524 Mon Sep 17 00:00:00 2001
|
||||
From: Andreas Gnau <andreas.gnau@iopsys.eu>
|
||||
Date: Mon, 15 Dec 2025 09:02:10 +0100
|
||||
Subject: [PATCH] cmake: fix compatibility with CMake 4
|
||||
|
||||
CMake 4 has dropped compatibility with old versions < 3.5, and will drop
|
||||
compatibility for < 3.10 in the future. Update the minimum required
|
||||
CMake version accordingly so that both old and new versions will work.
|
||||
|
||||
Upstream-Status: Submitted [https://github.com/BroadbandForum/obudpst/pull/23]
|
||||
Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>
|
||||
---
|
||||
CMakeLists.txt | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 83bee0290741..cb66227aa62f 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -27,7 +27,7 @@
|
||||
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
# POSSIBILITY OF SUCH DAMAGE.
|
||||
project(OB-UDPST)
|
||||
-cmake_minimum_required(VERSION 3.0)
|
||||
+cmake_minimum_required(VERSION 3.0...3.10)
|
||||
if(${CMAKE_VERSION} VERSION_GREATER "3.3.0")
|
||||
cmake_policy(SET CMP0057 NEW)
|
||||
endif()
|
||||
--
|
||||
2.52.0
|
||||
|
||||
Reference in New Issue
Block a user