1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-22 18:25:57 +01:00

Update CMake minimum required version to 3.10 (#553)

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
https://github.com/NixOS/nixpkgs/issues/450198) and will likely impact
other distributions as they upgrade to CMake 4.x.
This commit is contained in:
Dave Walker
2025-12-12 04:53:03 +00:00
committed by GitHub
parent fe22186623
commit 67c81199fb
2 changed files with 2 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.1) CMAKE_MINIMUM_REQUIRED(VERSION 3.10)
PROJECT(libtins) PROJECT(libtins)
OPTION(LIBTINS_BUILD_EXAMPLES "Build examples" ON) OPTION(LIBTINS_BUILD_EXAMPLES "Build examples" ON)

View File

@@ -50,7 +50,7 @@ if (NOT CMAKE_CXX_COMPILER_LOADED)
message(FATAL_ERROR "CheckCXX11Features modules only works if language CXX is enabled") message(FATAL_ERROR "CheckCXX11Features modules only works if language CXX is enabled")
endif () endif ()
cmake_minimum_required(VERSION 2.8.3) cmake_minimum_required(VERSION 3.10)
# #
### Check for needed compiler flags ### Check for needed compiler flags