Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update minimum required CMake version #308

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

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.

2 participants