diff options
author | Florian Walch <florian@fwalch.com> | 2014-10-20 14:58:37 +0200 |
---|---|---|
committer | Florian Walch <florian@fwalch.com> | 2014-10-20 15:07:14 +0200 |
commit | 0b775e3513098cc3ba9d7d75a93cc65f4e8a43f9 (patch) | |
tree | 779786d316e6d511b45586c89be36472694b7b9b | |
parent | 1eb3dae04a8fd703dcbc6257a3cf22a460e0d967 (diff) | |
download | rneovim-0b775e3513098cc3ba9d7d75a93cc65f4e8a43f9.tar.gz rneovim-0b775e3513098cc3ba9d7d75a93cc65f4e8a43f9.tar.bz2 rneovim-0b775e3513098cc3ba9d7d75a93cc65f4e8a43f9.zip |
CMake: Set execute permissions during installation.
-rw-r--r-- | cmake/InstallHelpers.cmake | 9 |
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() |