-
Notifications
You must be signed in to change notification settings - Fork 976
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
[question] is there a way to access dependency options from the requirements function ? #17137
Comments
The So this would be some "chicken and egg problem", cannot be done. Depending on the problem you are trying to solve (please elaborate if you'd like more feedback, provide the problem description), there could be other approaches, like using a user |
And visibility cannot simply be restricted by
If all of the above is true, you can make advanced_math/1.0 to have a |
is there a conan api though that can be used to fetch the options of a package . as I would like to implement a custom command to retrive the options of an dependency of a reciepe |
There is no such thing as the "options of a dependency of a recipe". You can easily have 2, or even more, different builds of
So for exactly the same recipe of In all those cases you can just do But I think you are not considering options as their main intent: to be an imperative input to the system. You as user defines the values to build one thing or the other. It is not generally a good practice to try to check dependencies options to do anything, it is the other way round, options mandate what should be done. Could you also please clarify if your
Because otherwise, the above would be just a plain library conflict, and the code needs to evolve to be able to depend on the same version of math. |
What is your question?
I am currently testing with conan and I want to be able to control the visible of a dependency of mine based on an one of its options . is there a way to access dependency options from the requirements function ?
Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: