[Pkg-cmake-team] Bug#1098837: cmake 4.0
Andrea Pappacoda
andrea at pappacoda.it
Mon Feb 24 22:06:52 GMT 2025
Source: cmake
Version: 3.31.5-2
Severity: wishlist
Hi!
Do you think it'd be feasable to package CMake 4.0 for trixie?
Despite its scary-looking name, it doesn't seem to be that big of
a release, and doesn't break much. The main change, as far as I can
tell, is the removal of compatibility with a CMake Policy version older
than 3.5 (i.e., projects declaring `cmake_minimum_required(VERSION 3.0)`
will no longer build).
While this might sound scary, CMake 4.0 also introduced a variable named
`CMAKE_POLICY_VERSION_MINIMUM`, which can override the
`cmake_minimum_required` call of built projects.
In other words, upgrading to CMake 4.0 will require Debian to either:
1. Patch all CMake-based projects to call at least
`cmake_minimum_required(VERSION 3.5)`, or
2. Patch debhelper to pass `-DCMAKE_POLICY_VERSION_MINIMUM=3.5` when
building.
Either way, there's a possibility that some projects will not build with
the above fix. Still, I find it quite unlikely.
Let me know! Bye :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-cmake-team/attachments/20250224/b5e0ee5c/attachment.sig>
More information about the Pkg-cmake-team
mailing list