ITK requires CMake 3.22.1, the version in Ubuntu 22.04. Ubuntu 22.04’s standard support ends in April 2027, so I propose moving to 3.28.3, the version in Ubuntu 24.04. A newer minimum would give us:
- Header file sets (3.23). Declaring each module’s
include/asFILE_SET HEADERSreplaces our hand-written header install, the build/install include paths, and theGLOB_RECURSEwe use to list headers for IDEs. InsightSoftwareConsortium/ITK#5801 already supports this, but only as an optional path. - Header-set verification (3.24). CMake compiles each public header on its own, which overlaps with our header tests.
- List generator expressions (3.27). Wrapping already depended on these once by accident and had to be backported (#6191).
- C++20 modules (3.28), no longer experimental with Ninja. 3.28 also adds
EXCLUDE_FROM_ALLforFetchContentusers.
Ubuntu 22.04, Debian 12 (3.25.1) and RHEL 8/9 (3.26.5) would need CMake from pip install cmake, apt.kitware.com or cmake.org. If that is too much, 3.26.5 still gets us file sets and header verification.
- Would a newer CMake be a problem for anyone?
- Should this go into ITK 6.0 or 6.1?
- 3.28.3 or 3.26.5?