Make cpp_info transitive information more clear when using components
- Dominant language
- C++
- Stars
- 125
- Forks
- 382
- Avg merge
- 22h 39m
- Merged PRs (30d)
- 21
Description
When reading the cpp_info page in Conan docs (https://docs.conan.io/2.0/reference/conanfile/methods/package_info.html) we can find explanation about cpp_info attributes and about components, but not about the transitive between them.
It would be great detailing what could be accessed via cpp_info, when having a component. For instance:
The package A has `cpp_info.components["foo"].bindirs = ["lib/foo"]`.
- Will this bindir be available via `cpp_info.bindirs` (the global one)?
- When consuming package A, its `cpp_info.bindirs` will be available when using `VirtualBuildEnv` or `VirtualRunEnv` when not declaring `A::foo` in my cpp_info requires?
/cc @garethsb
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the cpp_info and components sections on the linked package_info.html page. Verify how component bindirs flow to global cpp_info.bindirs and how VirtualBuildEnv or VirtualRunEnv handle package A without A::foo in cpp_info.requires; update the documentation to answer both cases clearly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100