File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
rocrtst/suites/test_common Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,12 @@ set ( CPACK_DEBIAN_PACKAGE_RELEASE "local" )
7575if ( DEFINED ENV{CPACK_DEBIAN_PACKAGE_RELEASE} )
7676 set ( CPACK_DEBIAN_PACKAGE_RELEASE $ENV{CPACK_DEBIAN_PACKAGE_RELEASE} )
7777endif ()
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
8186set ( CPACK_RPM_PACKAGE_RELEASE "local" )
@@ -98,7 +103,11 @@ if (DEFINED ENV{DISTRO_NAME} AND
98103endif ()
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
103112set (DEFAULT_TARGETS "gfx700;gfx701;gfx702;gfx801;gfx802;gfx803;gfx805;gfx810"
104113 "gfx900;gfx902;gfx904;gfx906;gfx908;gfx909;gfx90a;gfx90c;gfx940;gfx941;gfx942"
You can’t perform that action at this time.
0 commit comments