On Mon, Dec 15, 2025 at 3:40 AM Albert Astals Cid <[email protected]> wrote: > > I would like to propose this minimum cmake version policy for KDE Frameworks. > > The required minimum cmake version for KDE Frameworks will be the maximum of: > * The required cmake version of required Qt at that time > * The cmake version released 1 year before the required Qt at that time > > Let's do the calculations for now. > > required Qt at the time = 6.8 > required cmake version of Qt 6.8 = 3.16 > Qt 6.8 release date = 8 October 2024 > 1 year before Qt 6.8 relase date = 8 October 2023 > > cmake 3.27.0 release date = 18 July 2023 > cmake 3.28.0 release date = 6 December 2023 > > cmake version released 1 year before the required Qt at that time = 3.27 > > So this policy would suggest to increase our minimum cmake requirement to > max(3.27, 3.16) -> 3.27 > > This ties updating the minimum cmake version to when we update Qt which i > think makes sense, if we are going to as people to update Qt, we may as well > ask them to update cmake (which is in my opinion much easier) > > I know it is quite a jump in minimum required cmake version but i think having > a policy is much simpler than having to justify every time we want to do an > update. > > What do you all think? >
I think it's reasonably sensible. However, I'm going to ask for the caveat that we don't go up to requiring CMake 4.x for the time being. Updating to CMake 4.x has been a struggle for many distributions and it's only just now starting to trickle in. Fedora isn't going to have it until Fedora 44[1], for example. CentOS Stream 10 doesn't have it either (and won't ever because it deliberately broke backward compatibility). KDE projects themselves aren't affected usually (thank you for being good at this!), but non-KDE projects frequently have issues for a variety of reasons. It's going to take some time to get everything to adapt. So that means that the highest possible version (for now) would be CMake 3.31. [1]: https://fedoraproject.org/wiki/Changes/CMake4.0 -- 真実はいつも一つ!/ Always, there's only one truth!
