summaryrefslogtreecommitdiff
path: root/fix-cmake4.patch
blob: 41e481e71f6013af21164c177a4afc7925424425 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
diff -Naur a/auto/lib/librdkafka/CMakeLists.txt b/auto/lib/librdkafka/CMakeLists.txt
--- a/auto/lib/librdkafka/CMakeLists.txt	2026-01-06 08:22:00.000000000 +0800
+++ b/auto/lib/librdkafka/CMakeLists.txt	2026-10-20 16:47:45.152208900 +0800
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.2)
+cmake_minimum_required(VERSION 3.5)
 
 include("packaging/cmake/parseversion.cmake")
 parseversion("src/rdkafka.h")
diff -Naur a/auto/lib/luapkg/resty-cjson/CMakeLists.txt b/auto/lib/luapkg/resty-cjson/CMakeLists.txt
--- a/auto/lib/luapkg/resty-cjson/CMakeLists.txt	2026-01-06 08:22:00.000000000 +0800
+++ b/auto/lib/luapkg/resty-cjson/CMakeLists.txt	2026-10-20 16:47:45.214731000 +0800
@@ -4,7 +4,7 @@
 #       Windows: set LUA_DIR=c:\lua51
 
 project(lua-cjson C)
-cmake_minimum_required(VERSION 2.6)
+cmake_minimum_required(VERSION 3.5)
 
 option(USE_INTERNAL_FPCONV "Use internal strtod() / g_fmt() code for performance")
 option(MULTIPLE_THREADS "Support multi-threaded apps with internal fpconv - recommended" ON)
diff -Naur a/auto/lib/mariadb/CMakeLists.txt b/auto/lib/mariadb/CMakeLists.txt
--- a/auto/lib/mariadb/CMakeLists.txt	2026-01-06 08:22:00.000000000 +0800
+++ b/auto/lib/mariadb/CMakeLists.txt	2026-10-20 16:47:45.281937900 +0800
@@ -2,7 +2,7 @@
 
 # This is the LGPL libmariadb project.
 
-CMAKE_MINIMUM_REQUIRED(VERSION 2.8.12 FATAL_ERROR)
+CMAKE_MINIMUM_REQUIRED(VERSION 3.5 FATAL_ERROR)
 INCLUDE(CheckFunctionExists)
 IF(COMMAND CMAKE_POLICY)
   SET(NEW_POLICIES CMP0003 CMP0022 CMP0023 CMP0077 CMP0069 CMP0075)
diff -Naur a/auto/lib/mariadb/external/zlib/ucm.cmake b/auto/lib/mariadb/external/zlib/ucm.cmake
--- a/auto/lib/mariadb/external/zlib/ucm.cmake	2026-01-06 08:22:00.000000000 +0800
+++ b/auto/lib/mariadb/external/zlib/ucm.cmake	2026-10-20 16:47:45.317401100 +0800
@@ -10,7 +10,7 @@
 # The documentation can be found at the library's page:
 # https://github.com/onqtam/ucm
 
-cmake_minimum_required(VERSION 2.8.12)
+cmake_minimum_required(VERSION 3.5)
 
 include(CMakeParseArguments)
 
diff -Naur a/auto/lib/njetmq/CMakeLists.txt b/auto/lib/njetmq/CMakeLists.txt
--- a/auto/lib/njetmq/CMakeLists.txt	2026-01-06 08:22:00.000000000 +0800
+++ b/auto/lib/njetmq/CMakeLists.txt	2026-10-20 16:47:45.187713400 +0800
@@ -4,7 +4,7 @@
 # To configure the build options either use the CMake gui, or run the command
 # line utility including the "-i" option.
 
-cmake_minimum_required(VERSION 3.0)
+cmake_minimum_required(VERSION 3.5)
 cmake_policy(SET CMP0042 NEW)
 
 project(mosquitto)
diff -Naur a/auto/lib/tcc-0.9.26/CMakeLists.txt b/auto/lib/tcc-0.9.26/CMakeLists.txt
--- a/auto/lib/tcc-0.9.26/CMakeLists.txt	2026-01-06 08:22:00.000000000 +0800
+++ b/auto/lib/tcc-0.9.26/CMakeLists.txt	2026-10-20 16:47:45.242129000 +0800
@@ -1,5 +1,5 @@
 project(tcc C)
-cmake_minimum_required(VERSION 2.6)
+cmake_minimum_required(VERSION 3.5)
 enable_testing()
 
 # Detect native platform