From cad1cd86f977d109dac4437322911cda96cde61d Mon Sep 17 00:00:00 2001 From: czoido Date: Wed, 11 Jan 2023 14:54:40 +0100 Subject: [PATCH] add --component argument --- reference/conanfile/tools/cmake/cmake.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reference/conanfile/tools/cmake/cmake.rst b/reference/conanfile/tools/cmake/cmake.rst index ea7b67dabf57..568ab530b8a6 100644 --- a/reference/conanfile/tools/cmake/cmake.rst +++ b/reference/conanfile/tools/cmake/cmake.rst @@ -109,7 +109,7 @@ install() .. code:: python - def install(self, build_type=None): + def install(self, build_type=None, component=None): Equivalent to run ``cmake --build . --target=install`` @@ -117,6 +117,7 @@ Equivalent to run ``cmake --build . --target=install`` - ``build_type``: Use it only to override the value defined in the ``settings.build_type``. It can fail if the build is single configuration (e.g. Unix Makefiles), as in that case the build type must be specified at configure time, not build type. +- ``component``: Passes the ``--component=`` argument to the CMake install command. test()