On 01/11/2026 13:36, Peter Dimov via Boost wrote:
At the moment, our required CMake version is conservatively set to 3.8, and all libraries are recommended to support it.
This may be set too low for 2027. The minimum usable Ubuntu on Github Actions is 20.04, which has CMake 3.16.
Boost installation requires 3.13. Boost.Python requires 3.14. (These are preexisting requirements, from the very beginning.)
Opinions? Does anyone need CMake < 3.13? < 3.16?
Is there any technical feature in CMake 3.16 that do you think is useful for building boost?
I don't disagree with that, I only want to know if the minimum version upgrade will make the life easier or if the various CMakeLists.txt will remain the same without any code change, apart the version number of course.
A couple days ago I implemented an automatic detection for the job in the Boost.CI workflow using a fixed CMake version, intended as a test for the "minimum" CMake version supported. Library maintainers were previously supposed to set that version themselves as an input (not sure anyone did) with the default being very conservatively 3.16 It now reads the CMakeLists and use the declared minimum as the version to test, with at least 3.8 in case anything lower was declared. With that test quickly ran into the point mentioned above: Boost installation requires 3.13! I'd argue, that we should declare this as the minimum in the BoostRoot CML. For consuming projects CMake provides a "FindBoost"module to search for installed Boost libraries and their (hardcoded) dependencies. Since CMake 3.30 [1] they started deprecating this as since 1.70 Boost ships a CMake config file (via B2) providing actual dependencies, so they don't have to check and update them for each release. As for users the missing installation support in earlier CMake versions is only visible via a single(?) line in the configure output (and later missing those config files of course) I'd say we cause more harm than help in claiming support for earlier CMake versions while not providing the (now) essential CMake config files, given the FindBoost deprecation. [1]https://cmake.org/cmake/help/latest/policy/CMP0167.html