diff --git a/projects/hip-tests/samples/packaging/CMakeLists.txt b/projects/hip-tests/samples/packaging/CMakeLists.txt index d631ed6254..8483f88c58 100644 --- a/projects/hip-tests/samples/packaging/CMakeLists.txt +++ b/projects/hip-tests/samples/packaging/CMakeLists.txt @@ -57,11 +57,11 @@ set(CPACK_RPM_SPEC_MORE_DEFINE "%global __os_install_post %{nil}") set (CPACK_RPM_PACKAGE_AUTOREQ 0) # to remove hip-samples-* package during uninstallation of rocm if(BUILD_SHARED_LIBS) - set (CPACK_DEBIAN_PACKAGE_DEPENDS "rocm-core, hip-runtime-amd") - set (CPACK_RPM_PACKAGE_REQUIRES "rocm-core, hip-runtime-amd") + set (CPACK_DEBIAN_PACKAGE_DEPENDS "rocm-core, hip-dev, hipcc") + set (CPACK_RPM_PACKAGE_REQUIRES "rocm-core, hip-devel, hipcc") else() - set (CPACK_DEBIAN_PACKAGE_DEPENDS "rocm-core, hip-static-dev") - set (CPACK_RPM_PACKAGE_REQUIRES "rocm-core, hip-static-devel") + set (CPACK_DEBIAN_PACKAGE_DEPENDS "rocm-core, hip-static-dev, hipcc-static-dev") + set (CPACK_RPM_PACKAGE_REQUIRES "rocm-core, hip-static-devel, hipcc-static-devel") endif() if(NOT WIN32)