diff --git a/projects/hip-tests/catch/packaging/hip-tests.txt b/projects/hip-tests/catch/packaging/hip-tests.txt index f934130e34..553fdb853b 100644 --- a/projects/hip-tests/catch/packaging/hip-tests.txt +++ b/projects/hip-tests/catch/packaging/hip-tests.txt @@ -71,6 +71,9 @@ set(CPACK_PACKAGE_VENDOR "Advanced Micro Devices, Inc.") set(CPACK_PACKAGE_CONTACT "HIP Support ") set(CPACK_PACKAGE_VERSION @HIP_VERSION_MAJOR@.@HIP_VERSION_MINOR@.@HIP_VERSION_PATCH_GITHASH@) +# to remove hip-catch-* package during uninstallation of rocm +set (CPACK_DEBIAN_PACKAGE_DEPENDS "rocm-core") +set (CPACK_RPM_PACKAGE_REQUIRES "rocm-core") if(NOT WIN32) set(CPACK_GENERATOR "TGZ;DEB;RPM" CACHE STRING "Linux package types for catch tests")