1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-09-12 23:02:59 +03:00

When generating an RPM, attempt to exclude system directories

This commit is contained in:
Ron Isaacson 2020-06-29 23:11:05 -04:00
parent 6fe678fe84
commit eeaac4e78c

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()