CMakeLists: Make libdrm-amdgpu1 a suggestion

This is required for Marketing Name, but Marketing Name isn't a hard
requirement for ROCT, so make it a Suggested package

Change-Id: Ibafcce2c59dc8bdba90c171e766122bebf548a48
Signed-off-by: Kent Russell <kent.russell@amd.com>
This commit is contained in:
Kent Russell
2021-09-17 09:50:32 -04:00
bovenliggende 88e6921d45
commit 4144a0d2a4
+6
Bestand weergeven
@@ -350,9 +350,15 @@ set(CPACK_PACKAGE_VERSION "${PACKAGE_VERSION_STR}")
# Setting devel package dependendent version
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libdrm-dev, rocm-core")
set(CPACK_DEBIAN_PACKAGE_SUGGESTS "libdrm-amdgpu-amdgpu1")
set(CPACK_DEBIAN_PACKAGE_REPLACES "hsakmt-roct")
set(CPACK_RPM_PACKAGE_REQUIRES "libdrm-devel, rocm-core")
# NOTE: CentOS/RHEL 7 have no concept of "Suggests" so this will just
# fail to install libdrm-amdgpu on those OSes.
# If this package is required, either manually install the package
# or change the field below to REQUIRES
set(CPACK_RPM_PACKAGE_SUGGESTS "libdrm-amdgpu")
# Set the names now using CPACK utility
set(CPACK_DEBIAN_FILE_NAME "DEB-DEFAULT")