CMP0206.rst 1.2 KB

123456789101112131415161718192021222324252627282930
  1. CMP0206
  2. -------
  3. .. versionadded:: 4.3
  4. The :cpack_gen:`CPack Archive Generator` defaults to UID 0 and GID 0.
  5. In CMake 4.2 and below, the :cpack_gen:`CPack Archive Generator` always used
  6. the current user's UID/GID in archive entries. CMake 4.3 added the
  7. :variable:`CPACK_ARCHIVE_UID` and :variable:`CPACK_ARCHIVE_GID` variables
  8. to control them. If either is set, the default for the other is ``0``.
  9. If neither is set, CMake 4.3 and above prefer to default both UID and GID
  10. to ``0`` so that unpacking by ``root`` produces paths owned by ``root``.
  11. This policy provides compatibility with projects that have not been updated
  12. to expect the new behavior.
  13. The ``OLD`` behavior for this policy is to produce archive entries with
  14. the current user's UID/GID by default.
  15. The ``NEW`` behavior for this policy is to produce archive entries with
  16. the UID/GID set to 0/0 by default.
  17. .. |INTRODUCED_IN_CMAKE_VERSION| replace:: 4.3
  18. .. |WARNS_OR_DOES_NOT_WARN| replace:: does *not* warn
  19. .. include:: include/STANDARD_ADVICE.rst
  20. See documentation of the
  21. :variable:`CMAKE_POLICY_WARNING_CMP0206 <CMAKE_POLICY_WARNING_CMP<NNNN>>`
  22. variable to control the warning.
  23. .. include:: include/DEPRECATED.rst