-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Consolidate and simplify CMAKE_POLICY entries #6780
Conversation
@DomClark It appears |
I think the problem is that Further complicating this is policy scope. In very old CMake versions, including files did not begin a new policy scope, so policies set in an included file would affect the caller. This is now controlled by CMP0011: you'll notice this policy was also set in that file, but I don't believe it would work as intended. By the time the policy is set, the file has already been included without a new policy scope, so any policies set in the remainder of the file will nevertheless influence the calling code. With this in mind, I would aim for as few policy changes as possible, so I think just setting CMP0057 is the way to go. A comment explaining why this needs to be done wouldn't go amiss. |
Why the changes to the cmt submodule? Maybe a missing submodule update? |
This comment was marked as outdated.
This comment was marked as outdated.
Fixed, thanks. |
Inspired by: #6758 (comment)
Supersedes: #6778
Quoting @DomClark: