Skip to content

Commit 8135ac2

Browse files
arvindcheruJeniferC99
authored andcommitted
Update static package dependency of rocrtst
Change-Id: Ic12a6f2ec3bd03d871815810cc79488e7d5c57ab
1 parent a332c2d commit 8135ac2

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

rocrtst/suites/test_common/CMakeLists.txt

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,12 @@ set ( CPACK_DEBIAN_PACKAGE_RELEASE "local" )
7575
if( DEFINED ENV{CPACK_DEBIAN_PACKAGE_RELEASE} )
7676
set ( CPACK_DEBIAN_PACKAGE_RELEASE $ENV{CPACK_DEBIAN_PACKAGE_RELEASE} )
7777
endif()
78-
set (CPACK_DEBIAN_PACKAGE_DEPENDS "rocm-core,hsa-rocr")
78+
79+
if(BUILD_SHARED_LIBS)
80+
set (CPACK_DEBIAN_PACKAGE_DEPENDS "rocm-core,hsa-rocr")
81+
else()
82+
set (CPACK_DEBIAN_PACKAGE_DEPENDS "rocm-core,hsa-rocr-static-dev")
83+
endif()
7984

8085
## RPM package variables
8186
set ( CPACK_RPM_PACKAGE_RELEASE "local" )
@@ -98,7 +103,11 @@ if (DEFINED ENV{DISTRO_NAME} AND
98103
endif()
99104

100105

101-
set (CPACK_RPM_PACKAGE_REQUIRES "rocm-core,hsa-rocr")
106+
if(BUILD_SHARED_LIBS)
107+
set (CPACK_RPM_PACKAGE_REQUIRES "rocm-core,hsa-rocr")
108+
else()
109+
set (CPACK_RPM_PACKAGE_REQUIRES "rocm-core,hsa-rocr-static-devel")
110+
endif()
102111

103112
set(DEFAULT_TARGETS "gfx700;gfx701;gfx702;gfx801;gfx802;gfx803;gfx805;gfx810"
104113
"gfx900;gfx902;gfx904;gfx906;gfx908;gfx909;gfx90a;gfx90c;gfx940;gfx941;gfx942"

0 commit comments

Comments
 (0)