Skip to content
Snippets Groups Projects
Commit c17dd8a6 authored by Pere Mato Vila's avatar Pere Mato Vila
Browse files

Add executable permissions to command line tools

parent 2a140c98
Branches
Tags
No related merge requests found
......@@ -27,7 +27,12 @@ if(python)
string(REPLACE ".py" "" utilName ${utilName})
endif()
install(FILES ${rawUtilName} DESTINATION ${CMAKE_INSTALL_BINDIR} RENAME ${utilName} COMPONENT applications)
install(FILES ${rawUtilName} DESTINATION ${CMAKE_INSTALL_BINDIR}
RENAME ${utilName}
PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
GROUP_EXECUTE GROUP_READ
WORLD_EXECUTE WORLD_READ
COMPONENT applications)
execute_process(WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}
COMMAND ${CMAKE_COMMAND} -E copy ${rawUtilName} ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_BINDIR}/${utilName})
endforeach()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment