From c987a9f2f1dd5f1a2a976083b30c4203106acce8 Mon Sep 17 00:00:00 2001 From: mq1n Date: Sat, 23 Aug 2025 09:12:29 +0300 Subject: [PATCH] Update CMake minimum required version to 3.10 Raised the minimum required CMake version to 3.10 in cryptopp and zlib CMakeLists.txt files to ensure compatibility with newer CMake features and improve build consistency >> -- Could NOT find ZSTD (missing: ZSTD_LIBRARIES ZSTD_INCLUDE_DIRS) CMake Error at vendor/mariadb-connector-c-3.4.5/external/zlib/CMakeLists.txt:1 CMake Error at vendor/cryptopp/CMakeLists.txt:34 (cmake_minimum_required): Compatibility with CMake < 3.5 has been removed from CMake. (cmake_minimum_required): Compatibility with CMake < 3.5 has been removed from CMake. Update the VERSION argument value. Or, use the ... syntax to tell CMake that the project requires at least but has been updated to work with policies introduced by or earlier. Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway. -- Configuring incomplete, errors occurred! --- vendor/cryptopp/CMakeLists.txt | 2 +- vendor/mariadb-connector-c-3.4.5/external/zlib/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vendor/cryptopp/CMakeLists.txt b/vendor/cryptopp/CMakeLists.txt index b36e982..9569e1e 100644 --- a/vendor/cryptopp/CMakeLists.txt +++ b/vendor/cryptopp/CMakeLists.txt @@ -31,7 +31,7 @@ message( STATUS "CMake version ${CMAKE_VERSION}" ) message( STATUS "System ${CMAKE_SYSTEM_NAME}" ) message( STATUS "Processor ${CMAKE_SYSTEM_PROCESSOR}" ) -cmake_minimum_required(VERSION 2.8.6) +cmake_minimum_required(VERSION 3.10) if (${CMAKE_VERSION} VERSION_LESS "3.0.0") project(cryptopp) set(cryptopp_VERSION_MAJOR 8) diff --git a/vendor/mariadb-connector-c-3.4.5/external/zlib/CMakeLists.txt b/vendor/mariadb-connector-c-3.4.5/external/zlib/CMakeLists.txt index 360f9fe..70ac40b 100644 --- a/vendor/mariadb-connector-c-3.4.5/external/zlib/CMakeLists.txt +++ b/vendor/mariadb-connector-c-3.4.5/external/zlib/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.4.4) +cmake_minimum_required(VERSION 3.10) set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS ON) project(zlib C)