CMAKE_INSTALL_DEFAULT_DIRECTORY_PERMISSIONS.rst 1.0 KB

1234567891011121314151617181920212223242526272829
  1. CMAKE_INSTALL_DEFAULT_DIRECTORY_PERMISSIONS
  2. -------------------------------------------
  3. Default permissions for directories created implicitly during installation
  4. of files by :command:`install` and :command:`file(INSTALL)`.
  5. If ``make install`` is invoked and directories are implicitly created they
  6. get permissions set by :variable:`CMAKE_INSTALL_DEFAULT_DIRECTORY_PERMISSIONS`
  7. variable or platform specific default permissions if the variable is not set.
  8. Implicitly created directories are created if they are not explicitly installed
  9. by :command:`install` command but are needed to install a file on a certain
  10. path. Example of such locations are directories created due to the setting of
  11. :variable:`CMAKE_INSTALL_PREFIX`.
  12. Expected content of the :variable:`CMAKE_INSTALL_DEFAULT_DIRECTORY_PERMISSIONS`
  13. variable is a list of permissions that can be used by :command:`install` command
  14. `PERMISSIONS` section.
  15. Example usage:
  16. ::
  17. set(CMAKE_INSTALL_DEFAULT_DIRECTORY_PERMISSIONS
  18. OWNER_READ
  19. OWNER_WRITE
  20. OWNER_EXECUTE
  21. GROUP_READ
  22. )