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: replace check_library_exists by check_cxx_symbol_exists #991

Merged
merged 1 commit into from
Dec 20, 2023

Conversation

sergiud
Copy link
Collaborator

@sergiud sergiud commented Dec 19, 2023

As per https://gitlab.kitware.com/cmake/cmake/-/issues/18121, check_library_exists cannot not determine the availability of a symbol in a static library. Switch to check_cxx_symbol_exists to avoid incorrectly detecting the presence of dbghelp.

Fixes #982

@sergiud sergiud added the bug label Dec 19, 2023
@sergiud sergiud added this to the 0.7 milestone Dec 19, 2023
@codecov-commenter
Copy link

codecov-commenter commented Dec 19, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (36ccb15) 64.14% compared to head (c217f06) 64.22%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #991      +/-   ##
==========================================
+ Coverage   64.14%   64.22%   +0.07%     
==========================================
  Files          17       17              
  Lines        3327     3326       -1     
  Branches     1125     1125              
==========================================
+ Hits         2134     2136       +2     
+ Misses        766      765       -1     
+ Partials      427      425       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

As per https://gitlab.kitware.com/cmake/cmake/-/issues/18121,
check_library_exists cannot not determine the availability of a symbol
in a static library. Switch to check_cxx_symbol_exists to avoid
incorrectly detecting the presence of dbghelp.
@sergiud sergiud merged commit 7d973f9 into master Dec 20, 2023
268 checks passed
@sergiud sergiud deleted the cmake-dbghelp branch December 20, 2023 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cmake: dbghelp is incorrectly detected when building static libraris with Xcode generator
2 participants