Skip to content

Commit

Permalink
Clarify use of components with cmake (resolves conan-io/conan#7476)
Browse files Browse the repository at this point in the history
If a consumer package is using cmake build system, then
cmake_find_package and cmake_find_package_multi are the only supported
generators to take advantage of dependencies' components.
  • Loading branch information
0x4d0x4b committed Aug 4, 2020
1 parent d073c60 commit 07e6220
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions reference/conanfile/attributes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -944,6 +944,9 @@ This object should be filled in ``package_info()`` method.
+--------------------------------------+---------------------------------------------------------------------------------------------------------+
| self.cpp_info.components | | **[Experimental]** Dictionary with different components a package may have: libraries, executables... |
| | | **Warning**: Using components with other ``cpp_info`` non-default values or configs is not supported |
| | | **Note**: If a consumer package is using cmake build system, then ``cmake_find_package`` and |
| | | ``cmake_find_package_multi`` are the only supported generators to take advantage of dependencies' |
| | | components |
+--------------------------------------+---------------------------------------------------------------------------------------------------------+

The paths of the directories in the directory variables indicated above are relative to the
Expand Down

0 comments on commit 07e6220

Please sign in to comment.