mirror of
https://github.com/neovim/neovim.git
synced 2025-11-05 18:24:22 +00:00
CMake: Set execute permissions during installation.
This commit is contained in:
@@ -89,6 +89,13 @@ function(install_helper)
|
|||||||
WORLD_READ)
|
WORLD_READ)
|
||||||
endif()
|
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)
|
if(_install_helper_RENAME)
|
||||||
set(RENAME RENAME ${_install_helper_RENAME})
|
set(RENAME RENAME ${_install_helper_RENAME})
|
||||||
endif()
|
endif()
|
||||||
@@ -130,7 +137,7 @@ function(install_helper)
|
|||||||
install(
|
install(
|
||||||
PROGRAMS ${_install_helper_PROGRAMS}
|
PROGRAMS ${_install_helper_PROGRAMS}
|
||||||
DESTINATION ${_install_helper_DESTINATION}
|
DESTINATION ${_install_helper_DESTINATION}
|
||||||
PERMISSIONS ${_install_helper_FILE_PERMISSIONS}
|
PERMISSIONS ${_install_helper_PROGRAM_PERMISSIONS}
|
||||||
${RENAME})
|
${RENAME})
|
||||||
endif()
|
endif()
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|||||||
Reference in New Issue
Block a user