Fix build problems with CMake 4.0
CMake 4.0 is already rolling out on GitHub Actions, and our users are likely to start adopting it soon, too. Unfortunately, cesium-native currently doesn't build with this version because some of our dependencies (via vcpkg) use features that have been removed (or at least disabled by default) in CMake 4.0.
We need to fix this. It's possible this is just a matter of upgrading to a newer vcpkg package release where these problems have already been fixed. If that doesn't help, we can likely work around it with overlay ports or by invoking cmake / vcpkg with extra arguments (perhaps we can even do this automatically via ezvcpkg). As a last resort, we can document that CMake 3.x is currently required.
vcpkg hasn't done anything special so far, see https://github.com/microsoft/vcpkg/issues/44726
I can build successfully with these environment variables in #1026:
"environment": {
"CMAKE_POLICY_VERSION_MINIMUM": "3.5",
"VCPKG_KEEP_ENV_VARS": "CMAKE_POLICY_VERSION_MINIMUM"
}
vcpkg hasn't done anything special so far, see https://github.com/microsoft/vcpkg/issues/44726
Looks like they may have fixed this now with a change to vcpkg to automatically set CMAKE_POLICY_VERSION_MINIMUM to 3.5 when running in CMake 4.0+.