Policy changes in CMake version 4.0.0

Hi,

The CMake release 4.0.0 removes the OLD behaviour of the policies CMP0000 to CMP0065.
If you run into issues after the upgrade, this may be the reason why. Either directly or indirectly.

I had to manually grep the codebase to figure this out. Our CI exploded overnight due to MinGW and brew upgrading CMake to 4.0.0. It took us a while to figure out what was going on.
A section in the CMake release notes regarding this would have been helpful.

Kind regards
Frédéric

It is mentioned in the release notes: https://cmake.org/cmake/help/latest/release/4.0.html#deprecated-and-removed-features, though the numbers are not given.

IMO, it would be good to mention the minimum policy supported as it does for the minimum CMake version supported.

I see that the policies page lists all the policies removed by CMake 4, so maybe just a link to the unsupported policies section?

https://cmake.org/cmake/help/latest/manual/cmake-policies.7.html#unsupported-policies