aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Szakmeister <john@szakmeister.net>2014-10-21 04:31:38 -0400
committerJohn Szakmeister <john@szakmeister.net>2014-10-21 04:31:38 -0400
commit7e1b285c575aefc6120c1444f8d781f956d3cac8 (patch)
tree409c143c5051f194bb842a6ea6b4d4527e8fe7fb
parent56339036a741cb5ae8681bf73aec8f8d24cb1786 (diff)
parent0b775e3513098cc3ba9d7d75a93cc65f4e8a43f9 (diff)
downloadrneovim-7e1b285c575aefc6120c1444f8d781f956d3cac8.tar.gz
rneovim-7e1b285c575aefc6120c1444f8d781f956d3cac8.tar.bz2
rneovim-7e1b285c575aefc6120c1444f8d781f956d3cac8.zip
Merge pull request #1313 from fwalch/runtime-programs
CMake: Set execute permissions during installation.
-rw-r--r--cmake/InstallHelpers.cmake9
1 files changed, 8 insertions, 1 deletions
diff --git a/cmake/InstallHelpers.cmake b/cmake/InstallHelpers.cmake
index de2f970cc1..faf980bd47 100644
--- a/cmake/InstallHelpers.cmake
+++ b/cmake/InstallHelpers.cmake
@@ -89,6 +89,13 @@ function(install_helper)
WORLD_READ)
endif()
+ if(NOT _install_helper_PROGRAM_PERMISSIONS)
+ set(_install_helper_PROGRAM_PERMISSIONS
+ OWNER_READ OWNER_WRITE OWNER_EXECUTE
+ GROUP_READ GROUP_EXECUTE
+ WORLD_READ WORLD_EXECUTE)
+ endif()
+
if(_install_helper_RENAME)
set(RENAME RENAME ${_install_helper_RENAME})
endif()
@@ -130,7 +137,7 @@ function(install_helper)
install(
PROGRAMS ${_install_helper_PROGRAMS}
DESTINATION ${_install_helper_DESTINATION}
- PERMISSIONS ${_install_helper_FILE_PERMISSIONS}
+ PERMISSIONS ${_install_helper_PROGRAM_PERMISSIONS}
${RENAME})
endif()
endfunction()