CMP0161.rst 1.6 KB

123456789101112131415161718192021222324252627282930313233343536
  1. CMP0161
  2. -------
  3. .. versionadded:: 3.29
  4. The :variable:`CPACK_PRODUCTBUILD_DOMAINS` variable defaults to true.
  5. Before CMake 3.29, the :variable:`CPACK_PRODUCTBUILD_DOMAINS` variable is
  6. unset by default. When using the :cpack_gen:`CPack productbuild Generator`,
  7. this disables the use of the ``domains`` attribute in the productbuild
  8. Distribution XML, and falls back to the ``auth`` attribute instead.
  9. These attributes control where a productbuild package is allowed to be
  10. installed. But the ``auth`` attribute has been deprecated by Apple,
  11. so projects should migrate to using ``domains`` instead.
  12. CMake 3.29 and above prefer to use a default value of true for
  13. :variable:`CPACK_PRODUCTBUILD_DOMAINS`, which means ``domains`` will be used
  14. by default unless the project explicitly sets
  15. :variable:`CPACK_PRODUCTBUILD_DOMAINS` to false.
  16. This policy provides compatibility with projects that enabled the
  17. :cpack_gen:`CPack productbuild Generator`, but did not explicitly set
  18. :variable:`CPACK_PRODUCTBUILD_DOMAINS`.
  19. The ``OLD`` behavior for this policy is to leave
  20. :variable:`CPACK_PRODUCTBUILD_DOMAINS` unset if it hasn't been set.
  21. The ``NEW`` behavior for this policy is to use a default value of true for
  22. :variable:`CPACK_PRODUCTBUILD_DOMAINS`.
  23. .. |INTRODUCED_IN_CMAKE_VERSION| replace:: 3.29
  24. .. |WARNS_OR_DOES_NOT_WARN| replace:: warns
  25. .. include:: STANDARD_ADVICE.txt
  26. Note that a warning will only be emitted if the
  27. :variable:`CPACK_BINARY_PRODUCTBUILD <CPACK_BINARY_<GENNAME>>` variable is
  28. set to true and the project is being built for an Apple platform.
  29. .. include:: DEPRECATED.txt