Skip to content

Conversation

@daichifukui
Copy link
Contributor

This patch resolves an issue where the project fails to build with newer versions of CMake, specifically CMake 4.0, which has removed backward compatibility with versions older than 3.5.

The bug was originally reported on the Debian issue tracker at #1113063:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1113063

The project's CMakeLists.txt and CMakeLists.txt.in files specify a cmake_minimum_required version of 2.8.7...4.0.
This causes the build process to terminate with a fatal error on CMake 4.0 or later.

The fix updates the required minimum version to 3.5...4.1 to align with the latest CMake policies and allow the project to build successfully.
This change will be beneficial not only for Debian but for all other Linux distributions and operating systems running a modern CMake version.

This patch resolves an issue where the project fails to build with newer versions of CMake,
specifically CMake 4.0, which has removed backward compatibility with versions older than 3.5.

The bug was originally reported on the Debian issue tracker at #1113063:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1113063

The project's CMakeLists.txt and CMakeLists.txt.in files specify a cmake_minimum_required version of 2.8.7...4.0.
This causes the build process to terminate with a fatal error on CMake 4.0 or later.

The fix updates the required minimum version to 3.5...4.1 to align with the latest CMake policies
and allow the project to build successfully.
This change will be beneficial not only for Debian but for all other Linux distributions
and operating systems running a modern CMake version.

Signed-off-by: Fukui Daichi <a.dog.will.talk@akane.waseda.jp>
@johnbartholomew johnbartholomew marked this pull request as draft January 21, 2026 16:17
@johnbartholomew johnbartholomew marked this pull request as ready for review January 21, 2026 16:17
@johnbartholomew johnbartholomew force-pushed the dfukui/fix-build-on-cmake-4 branch from 9dd0ed3 to 077cdca Compare January 21, 2026 16:26
@johnbartholomew
Copy link
Collaborator

Thanks for the contribution! Bumping minimum to CMake 3.5 seems reasonable - it was released in March 2016! :-)

@johnbartholomew johnbartholomew merged commit 077cdca into google:master Jan 21, 2026
9 checks passed
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