Skip to content

Conversation

@Daviey
Copy link

@Daviey Daviey commented Oct 9, 2025

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.

The error message when using CMake 4.x:

CMake Error at CMakeLists.txt:1 (CMAKE_MINIMUM_REQUIRED):
  Compatibility with CMake < 3.5 has been removed from CMake.

  Update the VERSION argument <min> value.

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.
@Daviey Daviey force-pushed the cmake-4-compatibility branch from f92dc46 to c49fc6d Compare October 9, 2025 11:39
Daviey added a commit to Daviey/nixpkgs that referenced this pull request Oct 9, 2025
Patches CMakeLists.txt and CheckCXXFeatures.cmake to require CMake 3.10
instead of 2.8.x. CMake 4 doesn't support versions older than 3.5, and
versions between 3.5-3.10 are deprecated.

Upstream PR: mfontanini/libtins#553

Fixes: NixOS#450198
Signed-off-by: Dave Walker <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant