Skip to content

Commit b91a620

Browse files
minrkbluca
authored andcommitted
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)
1 parent 798a689 commit b91a620

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# CMake build script for ZeroMQ
22

33
if(${CMAKE_HOST_SYSTEM_NAME} STREQUAL Darwin)
4-
cmake_minimum_required(VERSION 3.0.2)
4+
cmake_minimum_required(VERSION 3.0.2...3.31)
55
else()
6-
cmake_minimum_required(VERSION 2.8.12)
6+
cmake_minimum_required(VERSION 2.8.12...3.31)
77
endif()
88

99
project(ZeroMQ)

tests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# CMake build script for ZeroMQ tests
2-
cmake_minimum_required(VERSION "2.8.1")
2+
cmake_minimum_required(VERSION 2.8.1...3.31)
33

44
# On Windows: solution file will be called tests.sln
55
project(tests)

unittests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# CMake build script for ZeroMQ unit tests
2-
cmake_minimum_required(VERSION "2.8.1")
2+
cmake_minimum_required(VERSION 2.8.1...3.31)
33

44
set(unittests
55
unittest_ypipe

0 commit comments

Comments
 (0)