close
Skip to content
This repository was archived by the owner on Jun 30, 2025. It is now read-only.

cmake: replace check_library_exists by check_cxx_symbol_exists - #991

Merged
sergiud merged 1 commit into
masterfrom
cmake-dbghelp
Dec 20, 2023
Merged

cmake: replace check_library_exists by check_cxx_symbol_exists#991
sergiud merged 1 commit into
masterfrom
cmake-dbghelp

Conversation

@sergiud

@sergiud sergiud commented Dec 19, 2023

Copy link
Copy Markdown
Contributor

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

codecov-commenter commented Dec 19, 2023

Copy link
Copy Markdown

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
@sergiud
sergiud deleted the cmake-dbghelp branch December 20, 2023 17:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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