summaryrefslogtreecommitdiffstats
path: root/Modules/CPack.cmake
diff options
context:
space:
mode:
authorDomen Vrankar <domen.vrankar@gmail.com>2017-11-08 19:25:29 (GMT)
committerDomen Vrankar <domen.vrankar@gmail.com>2017-11-08 19:27:11 (GMT)
commit7e896029cd6bc0a19b7e0ed6fa7b876e0f1764b3 (patch)
treeb1deb87df7b92e2a623f111b4cb8893629f0714e /Modules/CPack.cmake
parenta4c829167dc8fa24e151d2afde7896b4588b24ad (diff)
downloadCMake-7e896029cd6bc0a19b7e0ed6fa7b876e0f1764b3.zip
CMake-7e896029cd6bc0a19b7e0ed6fa7b876e0f1764b3.tar.gz
CMake-7e896029cd6bc0a19b7e0ed6fa7b876e0f1764b3.tar.bz2
CPack: enable setting default dir creation permissions
Introduces CPACK_DEFAULT_DIRECTORY_INSTALL_PERMISSIONS variable which adds support for functionality introduced by CMAKE_DEFAULT_DIRECTORY_INSTALL_PERMISSIONS variable. Fixes #17333 # Conflicts: # Help/release/dev/cmake-default-dir-install-permissions.rst
Diffstat (limited to 'Modules/CPack.cmake')
-rw-r--r--Modules/CPack.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/CPack.cmake b/Modules/CPack.cmake
index 3915943..ea7dc02 100644
--- a/Modules/CPack.cmake
+++ b/Modules/CPack.cmake
@@ -384,6 +384,12 @@ _cpack_set_default(CPACK_RESOURCE_FILE_WELCOME
_cpack_set_default(CPACK_MODULE_PATH "${CMAKE_MODULE_PATH}")
+# Set default directory creation permissions mode
+if(CMAKE_INSTALL_DEFAULT_DIRECTORY_PERMISSIONS)
+ _cpack_set_default(CPACK_INSTALL_DEFAULT_DIRECTORY_PERMISSIONS
+ "${CMAKE_INSTALL_DEFAULT_DIRECTORY_PERMISSIONS}")
+endif()
+
if(CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL)
set(CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL ON)
endif()