Skip to content

CMake alternative math library detection#310

Merged
attipaci merged 1 commit intomainfrom
cmake-mathlib
Apr 24, 2026
Merged

CMake alternative math library detection#310
attipaci merged 1 commit intomainfrom
cmake-mathlib

Conversation

@attipaci
Copy link
Copy Markdown
Collaborator

Until now, we used the CMake find_library() to detect if libm was present and should be used for linking. However as the discussion in microsoft/vcpkg#50514 points out, find_library() may fail if the library is in CMAKE_<LANG>_IMPLICIT_LINK_DIRECTORIES. So switch to a different method a detecting libm.

@attipaci attipaci added this to the 1.6.0 milestone Apr 24, 2026
@attipaci attipaci self-assigned this Apr 24, 2026
@attipaci attipaci added the enhancement New feature or request label Apr 24, 2026
@coveralls
Copy link
Copy Markdown

coveralls commented Apr 24, 2026

Coverage Report for CI Build 24884707307

Coverage decreased (-0.3%) to 99.111%

Details

  • Coverage decreased (-0.3%) from the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • 29 coverage regressions across 2 files.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

29 previously-covered lines in 2 files lost coverage.

File Lines Losing Coverage Coverage
usr/include/c++/13/bits/charconv.h 21 0.0%
usr/include/c++/13/bits/basic_string.h 8 49.12%

Coverage Stats

Coverage Status
Relevant Lines: 8999
Covered Lines: 8919
Line Coverage: 99.11%
Coverage Strength: 41604.42 hits per line

💛 - Coveralls

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@attipaci attipaci marked this pull request as ready for review April 24, 2026 10:31
@attipaci attipaci merged commit 9bb2aea into main Apr 24, 2026
34 checks passed
@attipaci attipaci deleted the cmake-mathlib branch April 24, 2026 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants