File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -131,8 +131,15 @@ macro(rocm_package_add_rocm_core_dependency)
131131 # This mainly empty package exists to allow all of rocm
132132 # to be removed in one step by removing rocm-core
133133 if (ROCM_DEP_ROCMCORE)
134- rocm_join_if_set(", " CPACK_DEBIAN_PACKAGE_DEPENDS "rocm-core" )
135- rocm_join_if_set(", " CPACK_RPM_PACKAGE_REQUIRES "rocm-core" )
134+ if (ENABLE_ASAN_PACKAGING)
135+ # For ASAN packages, add dependency to rocm-core-asan
136+ set (_rocm_core_pkg "rocm-core-asan" )
137+ else ()
138+ set (_rocm_core_pkg "rocm-core" )
139+ endif ()
140+ rocm_join_if_set(", " CPACK_DEBIAN_PACKAGE_DEPENDS ${_rocm_core_pkg} )
141+ rocm_join_if_set(", " CPACK_RPM_PACKAGE_REQUIRES ${_rocm_core_pkg} )
142+ unset (_rocm_core_pkg)
136143 endif ()
137144endmacro ()
138145
You can’t perform that action at this time.
0 commit comments