Fix cmake deprecation
fix cmake deprecation version <3.10
I just filed #317 on this very issue - this is a simple fix, and is important for VCPKG be able to build on newer systems with CMake version 4. Hopefully it makes it in soon!
Wiil it be merged soon ?
@perlpunk ping.
Would it be possible to prioritise this PR? The related CMake problem is popping up in multiple scenarios: package managers (vcpkg, conan), CIs (which tend to use recent CMake versions), casual users. What further exacerbates the problem is the tendency to adopt recent CMake versions, as CMake evolved rapidly in the latest years and people need those new features. Furthermore, dev tools (conan, Conda, Pixi, ...) make it easy to use recent versions of CMake. Hence, supporting recent versions of it is very important for users.
For others encountering this issue, a workaround is to overrideCMAKE_POLICY_VERSION_MINIMUM when configuring, e.g.:
cmake .. -DCMAKE_POLICY_VERSION_MINIMUM="3.10"
Close #317