From 8135ac22b4834d9b1e3d881b3110080bda7f9ee1 Mon Sep 17 00:00:00 2001 From: AravindanC Date: Wed, 6 Nov 2024 07:06:37 -0800 Subject: [PATCH] Update static package dependency of rocrtst Change-Id: Ic12a6f2ec3bd03d871815810cc79488e7d5c57ab --- rocrtst/suites/test_common/CMakeLists.txt | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/rocrtst/suites/test_common/CMakeLists.txt b/rocrtst/suites/test_common/CMakeLists.txt index 4c3febe01..06ed8a369 100755 --- a/rocrtst/suites/test_common/CMakeLists.txt +++ b/rocrtst/suites/test_common/CMakeLists.txt @@ -75,7 +75,12 @@ set ( CPACK_DEBIAN_PACKAGE_RELEASE "local" ) if( DEFINED ENV{CPACK_DEBIAN_PACKAGE_RELEASE} ) set ( CPACK_DEBIAN_PACKAGE_RELEASE $ENV{CPACK_DEBIAN_PACKAGE_RELEASE} ) endif() -set (CPACK_DEBIAN_PACKAGE_DEPENDS "rocm-core,hsa-rocr") + +if(BUILD_SHARED_LIBS) + set (CPACK_DEBIAN_PACKAGE_DEPENDS "rocm-core,hsa-rocr") +else() + set (CPACK_DEBIAN_PACKAGE_DEPENDS "rocm-core,hsa-rocr-static-dev") +endif() ## RPM package variables set ( CPACK_RPM_PACKAGE_RELEASE "local" ) @@ -98,7 +103,11 @@ if (DEFINED ENV{DISTRO_NAME} AND endif() -set (CPACK_RPM_PACKAGE_REQUIRES "rocm-core,hsa-rocr") +if(BUILD_SHARED_LIBS) + set (CPACK_RPM_PACKAGE_REQUIRES "rocm-core,hsa-rocr") +else() + set (CPACK_RPM_PACKAGE_REQUIRES "rocm-core,hsa-rocr-static-devel") +endif() set(DEFAULT_TARGETS "gfx700;gfx701;gfx702;gfx801;gfx802;gfx803;gfx805;gfx810" "gfx900;gfx902;gfx904;gfx906;gfx908;gfx909;gfx90a;gfx90c;gfx940;gfx941;gfx942"