On 2024-07-07 Sebastian Andrzej Siewior wrote: > On 2024-07-06 15:42:41 [+0300], Lasse Collin wrote: > > Does anyone think it's too early to require CMake >= 3.20? > > Debian Bookworm (stable) has cmake 3.25 and the release before it has > it in backports. So if one rolls its own xz and is using one of those > two distros and prefers to avoid autotools then it would work.
There was a bug report with Debian 11's CMake 3.18.4.[1] It was valuable as it made me spot issues that were bugs with a new CMake too. Since the build process didn't complain about CMake 3.18, the reporter didn't have a reason to check Debian backports. LTS distros with old CMake: - Ubuntu 20.04 has 3.16.3 (no backports) - CentOS 7 has 3.17.5 in EPEL Kitware provides Ubuntu 20.04 repository with CMake for x86-64 and 32/64-bit ARM.[2] But people might not want to use third-party repositories. There weren't any comments in the CMake thread on GitHub[3] and no one has objected on xz-devel so far either. Considering that Autotools support isn't going away anytime soon, I think requiring CMake 3.20 is fine. [1] https://github.com/tukaani-project/xz/issues/129 [2] https://apt.kitware.com/ [3] https://github.com/tukaani-project/xz/issues/68 -- Lasse Collin