CMake: Keep file permissions in deb package created with cpack? -


I am creating a debug package with cpack but this target does not have the original permission on the machine. This is causing the user to be unable to execute it after installing my application.

You can specify permissions with the Approval argument.

There is also USE_SOURCE_PERMISSIONS here, but I have never used it.

Here is a clear example: Permissions argument:

  Install # Monitor configuration (files $ {CMAKE_SOURCE_DIR } /ext_modules/monit.d / $ {CMAKE_PROJECT_NAME} dESTINATION $ {CMAKE_PACKAGE_TARGET_SYSCONFIG_DIR} allow OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE /monit.d) # 755 # application install program ($ {CMAKE_BINARY_DIR} / $ {CMAKE_PROJECT_NAME} destination $ {CMAKE_PACKAGE_TARGET_USER_BINARIES_DIR } Permission OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_WRITE GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) # Install 775    

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -