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

[build] allow using shared boost libraries #2653

Merged
merged 1 commit into from
Jan 28, 2025

Conversation

milas
Copy link
Contributor

@milas milas commented Dec 27, 2024

Do not unconditionally set Boost_USE_STATIC_LIBS but instead default it to true.

This allows building with shared Boost libraries, which can be useful for OS distribution packaging, for example.

The default is the same if not defined, so this is a backwards compatible change: unless explicitly set to false, static Boost libs will still be used.

In particular, this is useful for NixOS, where the static Boost lib will not work.

See also:

Copy link

codecov bot commented Jan 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 45.01%. Comparing base (2b41187) to head (f60d1d5).
Report is 928 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #2653       +/-   ##
===========================================
- Coverage   55.77%   45.01%   -10.77%     
===========================================
  Files          87      108       +21     
  Lines        6890    13360     +6470     
  Branches        0      963      +963     
===========================================
+ Hits         3843     6014     +2171     
- Misses       3047     7019     +3972     
- Partials        0      327      +327     

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

@SuperSandro2000
Copy link

bump

Do not unconditionally set `Boost_USE_STATIC_LIBS` but instead default
it to `true`.

This allows building with shared Boost libraries, which can be useful
for OS distribution packaging, for example.

The default is the same if not defined, so this is a backwards
compatible change: unless explicitly set to `false`, static Boost
libs will still be used.
@jwhui jwhui force-pushed the milas/boost-staticlibs-optout branch from 6fcae37 to f60d1d5 Compare January 28, 2025 19:25
@jwhui jwhui merged commit 7c7af7c into openthread:main Jan 28, 2025
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants