Skip to content

Conversation

@Nicholaswogan
Copy link

@Nicholaswogan Nicholaswogan commented Mar 28, 2025

CMake v4.0 just came out, and is not compatible with CMake versions less than 3.5. So, if you try to build libyaml with CMake v4.0, cmake throws an error because in the main branch, the CMakeLists.txt file has the line cmake_minimum_required(VERSION 3.0). This pull requests changes the minimum required version of CMake from v3.0 to v3.20 so that libyaml builds with the latest versions of CMake.

@innerout
Copy link

innerout commented Apr 1, 2025

Can this be merged @perlpunk because libraries depending on libyaml cannot compile?

@innerout
Copy link

innerout commented Apr 1, 2025

If you encounter this issue, use -DCMAKE_POLICY_VERSION_MINIMUM=3.5 in your cmake build.

Co-authored-by: Jed Brown <jed@jedbrown.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants