Skip to content

Commit e7f0f77

Browse files
authored
Add information about global cpp_info and components (#4008)
Signed-off-by: Uilian Ries <[email protected]>
1 parent d8bf57a commit e7f0f77

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/conanfile/package_info/components.rst

+4
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ There are a couple of relevant things:
116116
tutorial we will set the component target names just with the component names omitting
117117
the ``::``.
118118

119+
- When ``cpp_info`` has global build information (e.g. ``cpp_info.defines``), it does not inherit
120+
to the components. If you want to share this information with the components, you need to set it
121+
explicitly for each component.
122+
119123
You can have a look at the consumer part by checking the *test_package* folder. First the
120124
*conanfile.py*:
121125

0 commit comments

Comments
 (0)