CPackDeb: set priority control field per component
This commit is contained in:
parent
24012e3c15
commit
a60574f1bf
|
@ -120,12 +120,16 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# .. variable:: CPACK_DEBIAN_PACKAGE_PRIORITY
|
# .. variable:: CPACK_DEBIAN_PACKAGE_PRIORITY
|
||||||
|
# CPACK_DEBIAN_<COMPONENT>_PACKAGE_PRIORITY
|
||||||
#
|
#
|
||||||
# The Debian package priority
|
# Set Priority control field e.g. required, important, standard, optional,
|
||||||
|
# extra
|
||||||
#
|
#
|
||||||
# * Mandatory : YES
|
# * Mandatory : YES
|
||||||
# * Default : 'optional'
|
# * Default : 'optional'
|
||||||
#
|
#
|
||||||
|
# See https://www.debian.org/doc/debian-policy/ch-archive.html#s-priorities
|
||||||
|
#
|
||||||
#
|
#
|
||||||
# .. variable:: CPACK_DEBIAN_PACKAGE_HOMEPAGE
|
# .. variable:: CPACK_DEBIAN_PACKAGE_HOMEPAGE
|
||||||
#
|
#
|
||||||
|
@ -599,7 +603,7 @@ function(cpack_deb_prepare_package_vars)
|
||||||
# if per-component variable, overrides the global CPACK_DEBIAN_PACKAGE_${variable_type_}
|
# if per-component variable, overrides the global CPACK_DEBIAN_PACKAGE_${variable_type_}
|
||||||
# automatic dependency discovery will be performed afterwards.
|
# automatic dependency discovery will be performed afterwards.
|
||||||
if(CPACK_DEB_PACKAGE_COMPONENT)
|
if(CPACK_DEB_PACKAGE_COMPONENT)
|
||||||
foreach(value_type_ DEPENDS RECOMMENDS SUGGESTS PREDEPENDS ENHANCES BREAKS CONFLICTS PROVIDES REPLACES SOURCE SECTION)
|
foreach(value_type_ DEPENDS RECOMMENDS SUGGESTS PREDEPENDS ENHANCES BREAKS CONFLICTS PROVIDES REPLACES SOURCE SECTION PRIORITY)
|
||||||
set(_component_var "CPACK_DEBIAN_${_local_component_name}_PACKAGE_${value_type_}")
|
set(_component_var "CPACK_DEBIAN_${_local_component_name}_PACKAGE_${value_type_}")
|
||||||
|
|
||||||
# if set, overrides the global variable
|
# if set, overrides the global variable
|
||||||
|
|
Loading…
Reference in New Issue