Skip to content

Conversation

Daviey
Copy link

@Daviey Daviey commented Oct 9, 2025

CMake 4 no longer supports versions older than 3.5, and versions between 3.5-3.10 are deprecated. This PR updates the minimum required version to 3.10 to ensure compatibility with modern CMake versions.

Background

This issue is already affecting NixOS users (see NixOS/nixpkgs#449826) and will likely impact other distributions as they upgrade to CMake 4.x in the coming months.

Changes

  • Updated cmake_minimum_required (VERSION 3.0) to cmake_minimum_required (VERSION 3.10)

Testing

This change has been tested and builds successfully with both CMake 3.x and CMake 4.x.

@Daviey Daviey force-pushed the fix/cmake-4-compatibility branch from e640e21 to c6c7ba8 Compare October 9, 2025 09:00
CMake 4 no longer supports versions older than 3.5, and versions
between 3.5-3.10 are deprecated. This updates the minimum required
version to 3.10 to ensure compatibility with modern CMake versions.

This issue is already affecting NixOS users (see
NixOS/nixpkgs#449826) and will likely
impact other distributions as they upgrade to CMake 4.x.

Fixes compatibility with CMake 4.x
@Daviey Daviey force-pushed the fix/cmake-4-compatibility branch from c6c7ba8 to 3bc624a Compare October 9, 2025 09:06
Daviey added a commit to Daviey/nixpkgs that referenced this pull request Oct 9, 2025
Add a proper patch that updates all CMakeLists.txt files to require
CMake 3.10 instead of 3.0.

This approach is preferred as it fixes the issue at the source and
can be carried as a patch until merged upstream.

Upstream PR: GothenburgBitFactory/taskwarrior#3969
Fixes: NixOS#449826

Signed-off-by: Dave Walker <[email protected]>
@djmitche
Copy link
Collaborator

I think you have an extremely old base version? We made 3.22 the minimum version in 18a8bd2 (March 2024) and bumped to 3.24 in 236b57f (July 2025).

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.

2 participants