summaryrefslogtreecommitdiffhomepage
path: root/cmake/opentrack-boilerplate.cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-09-20 17:06:06 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-09-20 17:06:06 +0200
commit6bd66bdba425cb7a87b8961cc648e71b56ffec2e (patch)
tree349f67c84a80baefcde460a0fca9626a4a63ada8 /cmake/opentrack-boilerplate.cmake
parent2110fba1295c89a08154791b3aa2191b25c02894 (diff)
cmake: set install prefix permissions consistently
Diffstat (limited to 'cmake/opentrack-boilerplate.cmake')
-rw-r--r--cmake/opentrack-boilerplate.cmake6
1 files changed, 4 insertions, 2 deletions
diff --git a/cmake/opentrack-boilerplate.cmake b/cmake/opentrack-boilerplate.cmake
index 4546de28..ae5aedc8 100644
--- a/cmake/opentrack-boilerplate.cmake
+++ b/cmake/opentrack-boilerplate.cmake
@@ -1,3 +1,5 @@
+set(opentrack-perms PERMISSIONS WORLD_READ WORLD_EXECUTE OWNER_WRITE OWNER_READ OWNER_EXECUTE GROUP_READ GROUP_EXECUTE)
+
set(new-hier-path "#pragma once
#ifndef OPENTRACK_NO_QT_PATH
@@ -95,9 +97,9 @@ function(opentrack_install_sources n)
opentrack_sources(${n} sources)
file(RELATIVE_PATH subdir "${CMAKE_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}")
foreach (i ${sources})
- install(FILES "${i}" DESTINATION "${opentrack-doc-src-pfx}/${subdir}")
+ install(FILES "${i}" DESTINATION "${opentrack-doc-src-pfx}/${subdir}" ${opentrack-perms})
endforeach()
- install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt" DESTINATION "${opentrack-doc-src-pfx}/${subdir}")
+ install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt" DESTINATION "${opentrack-doc-src-pfx}/${subdir}" ${opentrack-perms})
endfunction()
function(opentrack_is_target_c_only ret srcs)