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

Pass build options to boost #673

Open
GreenFuze opened this issue May 11, 2023 · 3 comments
Open

Pass build options to boost #673

GreenFuze opened this issue May 11, 2023 · 3 comments

Comments

@GreenFuze
Copy link

Hey,

I need to build boost with a different libc, there is an option to do that using b2, but how can I pass these options using hunter_config?

Thanks

@GreenFuze
Copy link
Author

Notice, it is true not just to boost, but any library hunter builds. I know we can pass CMAKE args, but not everything is built via CMake (or is it in case of hunter?!)

@NeroBurner
Copy link

For CMake packages built by hunter you'd use CMakeToolchain files to modify your build

For Boost there are some cmake variables, which are passed to b2, but I don't know if libc is one of them. Maybe the documentation for the Boost package already has the right flag documented
https://hunter.readthedocs.io/en/latest/packages/pkg/Boost.html

hope it helps

@GreenFuze
Copy link
Author

Thank you, I am just trying to understand if there's a way to pass special flags directly to b2 using hunter?

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

No branches or pull requests

2 participants