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

Use cmake_minimum_required instead of cmake_policy #35

Open
LecrisUT opened this issue Feb 8, 2024 · 0 comments
Open

Use cmake_minimum_required instead of cmake_policy #35

LecrisUT opened this issue Feb 8, 2024 · 0 comments

Comments

@LecrisUT
Copy link
Owner

LecrisUT commented Feb 8, 2024

Syntax like cmake_minimum_required(VERSION 3.20...3.29) sets policies for up to 3.29 automatically. And since a new policy stack is created even when using include and find_package, all of these should be safe 1

Footnotes

  1. https://cmake.org/cmake/help/latest/command/cmake_policy.html#cmake-policy-stack

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

No branches or pull requests

1 participant