瀏覽代碼

install: Document where the components are used

Peter Kokot 10 月之前
父節點
當前提交
5a974b99fe
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      Help/command/install.rst

+ 5 - 0
Help/command/install.rst

@@ -111,6 +111,11 @@ signatures that specify them.  The common options are:
   created.  The default component name may be controlled with the
   :variable:`CMAKE_INSTALL_DEFAULT_COMPONENT_NAME` variable.
 
+  Installation components can be then used by the ``cmake --install`` command's
+  :option:`--component <cmake--install --component>` option and the
+  :module:`CPackComponent` module.  Global target ``list_install_components``
+  lists all available components.
+
 ``EXCLUDE_FROM_ALL``
   .. versionadded:: 3.6