Skip to content

🍒[CMake] Enable CMP0156 if available #9515

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

Merged

Conversation

etcwilde
Copy link
Member

@etcwilde etcwilde commented Nov 5, 2024

CMP0156 removes duplicate library links based on linker capabilities. The new Apple linker emits warnings when libraries are repeated on the link line because they do not have an effect.
Enabling this policy will remove the duplicate libraries, fixing these warnings.

Cherry-Picking back from llvm#115046.

CMP0156 removes duplicate library links based on linker capabilities.
The new Apple linker emits warnings when libraries are repeated on the
link line because they do not have an effect.
Enabling this policy will remove the duplicate libraries, fixing these
warnings.
@etcwilde etcwilde requested review from compnerd and jroelofs November 5, 2024 18:47
@etcwilde
Copy link
Member Author

etcwilde commented Nov 5, 2024

@swift-ci please test

@etcwilde
Copy link
Member Author

etcwilde commented Nov 6, 2024

@swift-ci please test Windows Platform

@etcwilde etcwilde merged commit 3c8a0af into swiftlang:stable/20240723 Nov 7, 2024
3 checks passed
@etcwilde etcwilde deleted the ewilde/20240723-enable-cmp0156 branch November 7, 2024 15:08
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