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 There is also Here is a clear example: Approval argument.
USE_SOURCE_PERMISSIONS here, but I have never used it.
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
Post a Comment