已关闭
[Bug-Report|缺陷反馈]: 存在cmake版本不支持file(CHMOD)的场景 #1009
qinhan创建于 3月18日关闭于 3月18日
3月18日 关闭了 issue
3月20日 添加了label:resolved
liu-wei
5 天前 评论:
5 天前 评论:
问题确认并已修复(commit a791c5a47):将 file(CHMOD ...) 替换为 execute_process(COMMAND chmod 440 ...) 直接调用系统 chmod,兼容 cmake 3.16+ 低版本场景,静态库编译报错消除。感谢反馈。


Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
一、问题描述 (必填)
目前使用cmake版本为3.16及以上,file(CHMOD .....)这个用法3.19版本才开始引用的,低于该版本会引发静态库编译报错问题;
改用通用命令 execute_process直接调用系统的 chmod 命令来修改文件权限
二、环境信息 (可选)
三、重现步骤 (可选)
四、预期结果 (可选)
💡 备注(选填)