Closed dornbirndevelops closed 6 months ago
Hi @dornbirndevelops
Thanks for your question.
I think you are asking exactly for this feature: https://blog.conan.io/2024/02/20/Conan-2-graph-features.html
The only issue is that it is a Conan 2 feature, this was not possible with Conan 1 (so I am afraid it is also impossible to backport it now), this is one of the reasons Conan 2 was necessary, so the new architecture and designed allowed us to deliver these demanded features.
The only way to do this in Conan 1 is modifying the recipes via options
(or maybe better conf
), but that might a bit too dirty, I'd focus the efforts on upgrading to Conan 2 to be able to use the built-in functionality.
thank you for the quick reply @memsharded, I will consider my options then. closing this as answered.
What is your question?
Hi!
My project requires the
grpc
library which in turn requiresopenssl
. I compilegrpc
using a Yocto SDK toolchain. This toolchain also deliversopenssl
as one of the preinstalled libraries inside the SDK sysroot. Now I would like to buildgrpc
against theopenssl
library that comes with the SDK. In other platforms, theopenssl
library offered byconan
should continue to be used.This problem can be applied to other libraries, so I will keep the question generic. If a library
Y
has a dependencyX
fromconan
, how can I configure a build ofY
to use the systemsX
library?Important side note: My project still uses conan 1.x.
Is it possible to "remove" a dependency from a dependency tree? I know overrides exist, but this is more of a substitution. Or do I need to patch the
grpc
recipe such that I can configure this dependency via options?Thanks in advance!
Have you read the CONTRIBUTING guide?