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

Bump policy_max CMake version to 3.31 to fix compatibility with CMake 4 #15

Merged
merged 1 commit into from
Feb 20, 2025

Conversation

traversaro
Copy link
Contributor

@traversaro traversaro commented Feb 20, 2025

The soon to be released CMake 4.0 will raise an error for any project with cmake_minimum_required(VERSION 3.5), as it removed support for having exactly the same behaviour of CMake 3.5 (see https://cmake.org/cmake/help/latest/release/4.0.html#deprecated-and-removed-features).

To fix this, we add a policy_max argument to cmake_minimum_required, so that the project will remain compatible with CMake 3.5, but we will use the CMake policy of up to CMake 3.31 (this is kind of equivalent of setting all policy introduced up to CMake 3.31 to NEW.

@traversaro traversaro merged commit 422c69c into main Feb 20, 2025
3 checks passed
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