cmake : How to change file permissions when installing?

前端 未结 1 733
我在风中等你
我在风中等你 2021-01-04 23:36

I have a file with 660 flags set, but I want to install it with 700 flags set.

How do I do it? How to change the file permission, without c

相关标签:
1条回答
  • 2021-01-05 00:28

    There is no FILE_PERMISSIONS argument in install(FILES ...). Use PERMISSIONS instead:

    install(
        FILES common.sh
        PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
        DESTINATION /rootfs/usr/bin
    )
    
    0 讨论(0)
提交回复
热议问题