We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This doc says:
"auto_shared_fpic": automatically manages fPIC and shared options
This says:
Options automatically managed: - fPIC (True, False). - shared (True, False). - header_only (True, False).
And this one says:
Options automatically managed: - fPIC (True, False).
What does auto_shared_fpic actually do?
auto_shared_fpic
The text was updated successfully, but these errors were encountered:
Note that if I don't have shared in options, conan 2.4.1 errors out:
shared
options
ERROR: mylib/1.0: Package type is 'library', but no 'shared' option declared
Sorry, something went wrong.
Hi @andrey-zherikov
Thanks for your question.
This is the injected code:
# injected in ``config_options()`` method def auto_shared_fpic_config_options(conanfile): if conanfile.settings.get_safe("os") == "Windows": conanfile.options.rm_safe("fPIC") # injected in ``configure()`` method def auto_shared_fpic_configure(conanfile): if conanfile.options.get_safe("header_only"): conanfile.options.rm_safe("fPIC") conanfile.options.rm_safe("shared") elif conanfile.options.get_safe("shared"): conanfile.options.rm_safe("fPIC")
Yes, this is expected. Defining package_type = "library" means that a shared option must be defined.
package_type = "library"
Please let me know if this clarifies the issue. Thanks!
@memsharded Thanks for the clarification! Could you please make documentation clearer and consistent?
Sure, moving this to the docs repo. As you can see, the docs is also an open source Git repo, improvements and contributions are also welcomed.
memsharded
No branches or pull requests
What is your question?
This doc says:
This says:
And this one says:
What does
auto_shared_fpic
actually do?Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: