libyaml icon indicating copy to clipboard operation
libyaml copied to clipboard

Fix cmake deprecation

Open mosfet80 opened this issue 7 months ago • 6 comments

fix cmake deprecation version <3.10

mosfet80 avatar Jun 12 '25 17:06 mosfet80

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!

ImOnALampshade avatar Jul 29 '25 21:07 ImOnALampshade

Wiil it be merged soon ?

guifran001 avatar Sep 05 '25 14:09 guifran001

@perlpunk ping.

mosfet80 avatar Sep 05 '25 16:09 mosfet80

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.

alberto-scolari avatar Oct 07 '25 07:10 alberto-scolari

For others encountering this issue, a workaround is to overrideCMAKE_POLICY_VERSION_MINIMUM when configuring, e.g.:

cmake .. -DCMAKE_POLICY_VERSION_MINIMUM="3.10"

lawmurray avatar Oct 08 '25 07:10 lawmurray

Close #317

mosfet80 avatar Oct 08 '25 12:10 mosfet80