diff --git a/share/rocmcmakebuildtools/cmake/ROCMCreatePackage.cmake b/share/rocmcmakebuildtools/cmake/ROCMCreatePackage.cmake index a2de88c..8e17603 100755 --- a/share/rocmcmakebuildtools/cmake/ROCMCreatePackage.cmake +++ b/share/rocmcmakebuildtools/cmake/ROCMCreatePackage.cmake @@ -326,11 +326,16 @@ macro(rocm_create_package) if (ROCM_USE_DEV_COMPONENT) rocm_compute_component_package_name(devel "${CPACK_PACKAGE_NAME}" "${PARSE_SUFFIX}" "${PARSE_HEADER_ONLY}") list(APPEND PARSE_COMPONENTS devel) - rocm_join_if_set(", " CPACK_DEBIAN_RUNTIME_PACKAGE_RECOMMENDS - "${CPACK_DEBIAN_DEVEL_PACKAGE_NAME} (>=${CPACK_PACKAGE_VERSION})") + if (NOT ENABLE_ASAN_PACKAGING) + # Since no asan-dev package available, avoid recommends for ASAN + rocm_join_if_set(", " CPACK_DEBIAN_RUNTIME_PACKAGE_RECOMMENDS + "${CPACK_DEBIAN_DEVEL_PACKAGE_NAME} (>=${CPACK_PACKAGE_VERSION})" + ) + endif() rocm_find_program_version(rpmbuild GREATER_EQUAL 4.12.0 QUIET) - if(rpmbuild_VERSION_OK) + if(rpmbuild_VERSION_OK AND NOT ENABLE_ASAN_PACKAGING) + # Since no asan-dev package available, avoid suggests for ASAN rocm_join_if_set(", " CPACK_RPM_RUNTIME_PACKAGE_SUGGESTS "${CPACK_RPM_DEVEL_PACKAGE_NAME} >= ${CPACK_PACKAGE_VERSION}" )