From fb14c3cfa4108eb2a97318f2a81c83d557b2e8db Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Wed, 28 Oct 2026 07:52:19 +0000 Subject: automatic import of opennjet --- fix-cmake4.patch | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 fix-cmake4.patch (limited to 'fix-cmake4.patch') diff --git a/fix-cmake4.patch b/fix-cmake4.patch new file mode 100644 index 0000000..41e481e --- /dev/null +++ b/fix-cmake4.patch @@ -0,0 +1,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 -- cgit v1.2.3