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

Boost packages should include b2_options #280

Open
chrahunt opened this issue May 19, 2018 · 0 comments
Open

Boost packages should include b2_options #280

chrahunt opened this issue May 19, 2018 · 0 comments
Assignees

Comments

@chrahunt
Copy link

Description of Problem, Request, or Question

I needed to debug my usage of boost_log/1.66.0@bincrafters/stable. By default the library is not built with debugging symbols. I was able to get a debug build by changing the conanfile.py in conan-boost_log to include

class BoostLogConan(ConanFile):
    options = {"shared": [True, False], "b2_options": "ANY"}
    default_options = "shared=False", "b2_options="

    def b2_options(self, lib_name):
        return str(self.options.b2_options)

After this, setting boost_log:b2_options=variant=debug in my Conanfile gave me the result I was looking for.

Can we add a check for conanfile.options.b2_options in boost_package_tools? This could make all of the modular Boost packages flexible for the end-user without needing to encode every b2 feature in each individual Conanfile. Individual Boost packages could be updated with the new option as-needed or proactively.

Package Details (Include if Applicable)

  • Package Name/Version: boost_*/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants