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

cmake: Fix passing linker flags in TryAppendCXXFlags module #291

Merged
merged 1 commit into from
Aug 1, 2024

Conversation

hebasto
Copy link
Owner

@hebasto hebasto commented Jul 31, 2024

Linker flags should be passed via CMAKE_REQUIRED_LINK_OPTIONS rather than CMAKE_REQUIRED_FLAGS.

The issue has been reported by fanquake offline.

Linker flags should be passed via `CMAKE_REQUIRED_LINK_OPTIONS` rather
than `CMAKE_REQUIRED_FLAGS`.
@hebasto hebasto added the bug Something isn't working label Jul 31, 2024
Copy link

@vasild vasild left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 41b5436

CMAKE_REQUIRED_LINK_OPTIONS is documented in https://cmake.org/cmake/help/latest/module/CheckCXXSourceCompiles.html

@hebasto hebasto merged commit 6e38140 into cmake-staging Aug 1, 2024
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants