mirror of
https://github.com/reactos/CMake.git
synced 2024-12-04 01:22:28 +00:00
deeba85f81
Introduces CMAKE_DEFAULT_DIRECTORY_INSTALL_PERMISSIONS variable which enables the user to specify the default permissions for directory creation. This setting is then used to auto set the permissions on directories which are implicitly created by install() and file(INSTALL) commands such as CMAKE_INSTALL_PREFIX directories.
30 lines
1.0 KiB
ReStructuredText
30 lines
1.0 KiB
ReStructuredText
CMAKE_INSTALL_DEFAULT_DIRECTORY_PERMISSIONS
|
|
-------------------------------------------
|
|
|
|
Default permissions for directories created implicitly during installation
|
|
of files by :command:`install` and :command:`file(INSTALL)`.
|
|
|
|
If ``make install`` is invoked and directories are implicitly created they
|
|
get permissions set by :variable:`CMAKE_INSTALL_DEFAULT_DIRECTORY_PERMISSIONS`
|
|
variable or platform specific default permissions if the variable is not set.
|
|
|
|
Implicitly created directories are created if they are not explicitly installed
|
|
by :command:`install` command but are needed to install a file on a certain
|
|
path. Example of such locations are directories created due to the setting of
|
|
:variable:`CMAKE_INSTALL_PREFIX`.
|
|
|
|
Expected content of the :variable:`CMAKE_INSTALL_DEFAULT_DIRECTORY_PERMISSIONS`
|
|
variable is a list of permissions that can be used by :command:`install` command
|
|
`PERMISSIONS` section.
|
|
|
|
Example usage:
|
|
|
|
::
|
|
|
|
set(CMAKE_INSTALL_DEFAULT_DIRECTORY_PERMISSIONS
|
|
OWNER_READ
|
|
OWNER_WRITE
|
|
OWNER_EXECUTE
|
|
GROUP_READ
|
|
)
|