File tree 2 files changed +10
-0
lines changed
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -64,3 +64,7 @@ cmake_minimum_required(VERSION 3.0.0)
64
64
65
65
# build man pages
66
66
add_subdirectory (man)
67
+
68
+ # CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION needs to be sent all the way to the root scope
69
+ # in order to not add /usr/share/man and /usr/share/man/man1 into the RPMs
70
+ set (CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION "${CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION} " PARENT_SCOPE)
Original file line number Diff line number Diff line change @@ -92,3 +92,9 @@ foreach(MAN_PAGE ${MAN_PAGES})
92
92
DESTINATION share/man/man${SECTION}
93
93
COMPONENT Server)
94
94
endforeach ()
95
+
96
+ # CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION needs to be sent all the way to the root scope
97
+ # in order to not add /usr/share/man and /usr/share/man/man1 into the RPMs
98
+ list (APPEND CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION "/usr/share/man" )
99
+ list (APPEND CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION "/usr/share/man/man1" )
100
+ set (CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION "${CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION} " PARENT_SCOPE)
You can’t perform that action at this time.
0 commit comments