【发布时间】:2018-02-22 02:43:13
【问题描述】:
我尝试打包我用 C++ 编写的项目并使用 cmake 作为构建工具。我可以创建一个 rpm 包,但我无法安装它。错误信息是:
file /usr/local from install of myapp.x86_64 conflicts with file from package filesystem-3.3-3.fc27.x86_64
file /usr/local/include from install of myapp.x86_64 conflicts with file from package filesystem-3.3-3.fc27.x86_64
file /usr/local/bin from install of myapp.x86_64 conflicts with file from package filesystem-3.3-3.fc27.x86_64
file /usr/local/etc from install of myapp.x86_64 conflicts with file from package filesystem-3.3-3.fc27.x86_64
我尝试在CMakeList.txt 中设置CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION,但它不起作用。
set(CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION /usr/local /usr/local/etc /usr/local/bin /usr/local/include`
【问题讨论】: