conan-io / conan-io/docs

[question] How can I get sub graph of a dependency in a recipe?

Open
#3,414 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
125
Forks
382
Avg merge
22h 39m
Merged PRs (30d)
21

Description

### What is your question?

I need to find libs in topological order of a dependency (openssl) and its dependencies, in order to get their libs, lib dirs, include dirs, defines, system libs/frameworks so that I can patch a CMakeLists for check_symbol_exists() (for the well known bug in targets defined by CMakeDeps not working with these functions: https://github.com/conan-io/conan/issues/12012 & https://github.com/conan-io/conan/issues/12180).
I don't want the full graph (other unrelated dependencies of this recipe), and I don't want only cpp_info of openssl (I need also its dependencies (there might be zlib depending on an openssl option)).

How can I do that with self.dependencies?

### Have you read the CONTRIBUTING guide?

- [ ] I've read the CONTRIBUTING guide

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.