]> git.ipfire.org Git - thirdparty/json-c.git/commitdiff
Issue #471: always create directories with mode 0755, regardless of umask.
authorEric Haszlakiewicz <erh+git@nimenees.com>
Tue, 21 Apr 2020 03:19:17 +0000 (03:19 +0000)
committerEric Haszlakiewicz <erh+git@nimenees.com>
Tue, 21 Apr 2020 03:19:17 +0000 (03:19 +0000)
CMakeLists.txt

index c93c67a4cfb7416e43744245ce38673e96c7cc48..1d09e5075b71e2efbd1e2a36eca3e0bebc7acba3 100644 (file)
@@ -392,6 +392,17 @@ target_include_directories(${PROJECT_NAME}
         $<BUILD_INTERFACE:${PROJECT_BINARY_DIR}>
 )
 
+# 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}