When generating an RPM, attempt to exclude system directories

This commit is contained in:
Ron Isaacson committed 2020-06-29 23:11:05 -04:00
1 parent 6fe678fe84
commit eeaac4e78c
1 file changed
+9
+9
View File
@@ -87,5 +87,14 @@ if(UNIX)
set(CPACK_RPM_PACKAGE_GROUP "Applications/Internet")
set(CPACK_RPM_PACKAGE_LICENSE "ASL 2.0")
# Exclude system directories
if(CPACK_GENERATOR STREQUAL "RPM")
execute_process(
COMMAND rpm -ql filesystem
COMMAND tr \n \;
OUTPUT_VARIABLE CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION
ERROR_QUIET)
endif()
include(CPack)
endif()