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 <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.

  Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.

-- Configuring incomplete, errors occurred!
This commit is contained in:
mq1n
2025-08-23 09:12:29 +03:00
parent 240f4f24c3
commit c987a9f2f1
2 changed files with 2 additions and 2 deletions

View File

@@ -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)

View File

@@ -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)