Skip to content

[cmake] Add CMake option to enable boost pool support #93

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

Merged

Conversation

cgraeser
Copy link
Contributor

@cgraeser cgraeser commented Jan 1, 2025

Since the variable USE_BOOST_POOL is configured in CMake one could mark this as a CACHE STRING variable to make it user-settable. Then the user could enable boost-pool support by setting this variable. However, passing

cmake -DUSE_BOOST_POOL='#define USE_BOOST_POOL 1'

is rather user unfriendly. Furthermore a binary decision should be configured via a boolean option. Hence, this introduces a CMake option that allows to activate support via

cmake -DENABLE_BOOST_POOL=ON

Since the variable `USE_BOOST_POOL` is configured in CMake
one could mark this as a `CACHE STRING` variable to make
it user-settable. Then the user could enable boost-pool
support by setting this variable. However, passing

```
cmake -DUSE_BOOST_POOL='#define USE_BOOST_POOL 1'
```

is rather user unfriendly. Furthermore a binary decision
should be configured via a boolean option. Hence, this
introduces a CMake option that allows to activate support via

```
cmake -DENABLE_BOOST_POOL=ON
```
Copy link

codecov bot commented Jan 1, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 65.57%. Comparing base (3c1f1ed) to head (5a575a1).
Report is 6 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #93      +/-   ##
==========================================
- Coverage   66.25%   65.57%   -0.68%     
==========================================
  Files          51       51              
  Lines       26686    26162     -524     
  Branches     1843     1843              
==========================================
- Hits        17680    17156     -524     
  Misses       9006     9006              
Flag Coverage Δ
unittests 65.57% <ø> (-0.68%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@cgraeser
Copy link
Contributor Author

cgraeser commented Jan 1, 2025

Notice that this is somehow orthogonal to #87. The latter does not add an option or test for boost-pool. It is also marked as a draft and much more invasive. The present proposal is meant as a short term solution which at least allows to build with cmake and activated boost-pool support, e.g. to test the respective implementation.

@TimSiebert1 TimSiebert1 merged commit 1991b05 into coin-or:master Jan 6, 2025
37 of 39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants