From fa6bc1e2d7cd61a678b7476290f1337ebc9dc50f Mon Sep 17 00:00:00 2001 From: Eric Haszlakiewicz Date: Tue, 21 Apr 2020 03:19:17 +0000 Subject: [PATCH] Issue #471: always create directories with mode 0755, regardless of umask. --- CMakeLists.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c93c67a..1d09e50 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -392,6 +392,17 @@ target_include_directories(${PROJECT_NAME} $ ) +# Always create new install dirs with 0755 permissions, regardless of umask +set(CMAKE_INSTALL_DEFAULT_DIRECTORY_PERMISSIONS + OWNER_READ + OWNER_WRITE + OWNER_EXECUTE + GROUP_READ + GROUP_EXECUTE + WORLD_READ + WORLD_EXECUTE + ) + install(TARGETS ${PROJECT_NAME} EXPORT ${PROJECT_NAME}-targets RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} -- 2.40.0