From 07e622053623d28ce7252424d37f1689b94166ff Mon Sep 17 00:00:00 2001 From: kajdam <69102864+kajdam@users.noreply.github.com> Date: Tue, 4 Aug 2020 12:36:34 +0100 Subject: [PATCH] Clarify use of components with cmake (resolves conan-io/conan#7476) 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. --- reference/conanfile/attributes.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/reference/conanfile/attributes.rst b/reference/conanfile/attributes.rst index d749d44da26..fd3c6ce8785 100644 --- a/reference/conanfile/attributes.rst +++ b/reference/conanfile/attributes.rst @@ -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