diff options
author | David Wosk <davidwosk1@gmail.com> | 2021-12-22 00:54:38 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-01-06 16:33:25 (GMT) |
commit | da737d34e05d4a07b64596fc4970a0dd279a741d (patch) | |
tree | 7109ab87afe67fec49bf4d924c2cffa2e1b78d71 /Help/cpack_gen | |
parent | 13e71b7c3ec9351f0c25656e72c1c0199ddf771c (diff) | |
download | CMake-da737d34e05d4a07b64596fc4970a0dd279a741d.zip CMake-da737d34e05d4a07b64596fc4970a0dd279a741d.tar.gz CMake-da737d34e05d4a07b64596fc4970a0dd279a741d.tar.bz2 |
CPack/productbuild: add options to control domains element
The domains element determines the required authorization level needed
for the install. The auth attribute of the pkg-ref element has been
deprecated in favor of domains, so if the domains options are
specified, the auth attribute is omitted.
Fixes: #23030
Diffstat (limited to 'Help/cpack_gen')
-rw-r--r-- | Help/cpack_gen/productbuild.rst | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Help/cpack_gen/productbuild.rst b/Help/cpack_gen/productbuild.rst index 75d5cff..dc98c85 100644 --- a/Help/cpack_gen/productbuild.rst +++ b/Help/cpack_gen/productbuild.rst @@ -86,6 +86,46 @@ macOS using ProductBuild: :variable:`CPACK_RESOURCE_FILE_README`, and :variable:`CPACK_RESOURCE_FILE_LICENSE` files are copied. +.. variable:: CPACK_PRODUCTBUILD_DOMAINS + + .. versionadded:: 3.23 + + Adds a domains element to Distribution XML if specified. When set to true, + the productbuild generator creates the following XML element: + + .. code-block:: xml + + <domains enable_anywhere="true" enable_currentUserHome="false" enable_localSystem="true"/> + + The default values used for the attributes can be overridden with + :variable:`CPACK_PRODUCTBUILD_DOMAINS_ANYWHERE`, + :variable:`CPACK_PRODUCTBUILD_DOMAINS_USER`, and + :variable:`CPACK_PRODUCTBUILD_DOMAINS_ROOT`. + +.. variable:: CPACK_PRODUCTBUILD_DOMAINS_ANYWHERE + + .. versionadded:: 3.23 + + May be used to override the ``enable_anywhere`` attribute in the domains + element in the Distribution XML when :variable:`CPACK_PRODUCTBUILD_DOMAINS` + is set to ``TRUE``. + +.. variable:: CPACK_PRODUCTBUILD_DOMAINS_USER + + .. versionadded:: 3.23 + + May be used to override the ``enable_currentUserHome`` attribute in the domains + element in the Distribution XML when :variable:`CPACK_PRODUCTBUILD_DOMAINS` + is set to ``TRUE``. + +.. variable:: CPACK_PRODUCTBUILD_DOMAINS_ROOT + + .. versionadded:: 3.23 + + May be used to override the ``enable_localSystem`` attribute in the domains + element in the Distribution XML when :variable:`CPACK_PRODUCTBUILD_DOMAINS` + is set to ``TRUE``. + Background Image """""""""""""""" |