set upper bound in cmake_minimum_required

setting an upper bound improves forward-compatibility as legacy version support is dropped

- 3.5 compat is deprecated in 3.27 (2023), removed in 4.0 (2025)
- 3.10 compat is deprecated in 3.31 (2024)
This commit is contained in:
Min RK 2025-03-20 14:51:18 +01:00
parent 34f7fa2202
commit 1e65e8e61d
No known key found for this signature in database
3 changed files with 4 additions and 4 deletions

View File

@ -1,9 +1,9 @@
# CMake build script for ZeroMQ
if(${CMAKE_HOST_SYSTEM_NAME} STREQUAL Darwin)
cmake_minimum_required(VERSION 3.0.2)
cmake_minimum_required(VERSION 3.0.2...3.31)
else()
cmake_minimum_required(VERSION 2.8.12)
cmake_minimum_required(VERSION 2.8.12...3.31)
endif()
project(ZeroMQ)

View File

@ -1,5 +1,5 @@
# CMake build script for ZeroMQ tests
cmake_minimum_required(VERSION "2.8.1")
cmake_minimum_required(VERSION 2.8.1...3.31)
# On Windows: solution file will be called tests.sln
project(tests)

View File

@ -1,5 +1,5 @@
# CMake build script for ZeroMQ unit tests
cmake_minimum_required(VERSION "2.8.1")
cmake_minimum_required(VERSION 2.8.1...3.31)
set(unittests
unittest_ypipe