With CMake 4, CMake has started failing the build when it finds a CMakeLists.txt that claims to be compatible back to a version lower than 3.5, because they don't believe the CI systems are using CMake that old and because they don't want to maintain all the policy code back that far, as I understand it.
See for example: https://stackoverflow.com/a/79535141
So it looks like:
|
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.7) |
Should be changed to at least 3.5, and possibly 3.10...4.0 to show it's tested up through 4.0 and to avoid deprecated versions that will soon similarly be errors to still support.