Skip to content

Commit c49fc6d

Browse files
committed
Update CMake minimum required version to 3.10
CMake 4 removed compatibility with CMake versions < 3.5, and versions between 3.5-3.10 are deprecated. This change updates the minimum required version to 3.10 to ensure compatibility with modern CMake versions including CMake 4.x. This issue is affecting NixOS users (see NixOS/nixpkgs#450198) and will likely impact other distributions as they upgrade to CMake 4.x.
1 parent fe22186 commit c49fc6d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.1)
1+
CMAKE_MINIMUM_REQUIRED(VERSION 3.10)
22
PROJECT(libtins)
33

44
OPTION(LIBTINS_BUILD_EXAMPLES "Build examples" ON)

cmake/Modules/CheckCXXFeatures.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ if (NOT CMAKE_CXX_COMPILER_LOADED)
5050
message(FATAL_ERROR "CheckCXX11Features modules only works if language CXX is enabled")
5151
endif ()
5252

53-
cmake_minimum_required(VERSION 2.8.3)
53+
cmake_minimum_required(VERSION 3.10)
5454

5555
#
5656
### Check for needed compiler flags

0 commit comments

Comments
 (0)