Skip to content

Commit

Permalink
Fix -asan suffix for ASAN RPM packages (#133)
Browse files Browse the repository at this point in the history
In SLES, the asan package name doesn't have the suffix asan.
Append cpack package name with suffix asan

Co-authored-by: raramakr <[email protected]>
  • Loading branch information
lawruble13 and raramakr authored Jun 20, 2023
1 parent 2d0c6e4 commit 81e6411
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions share/rocm/cmake/ROCMCreatePackage.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -464,9 +464,10 @@ macro(rocm_set_comp_cpackvar HEADER_ONLY components)
"${CPACK_PACKAGE_NAME}_${CPACK_PACKAGE_VERSION}-${DEBIAN_VERSION}_${CPACK_DEBIAN_PACKAGE_ARCHITECTURE}.deb")
set(CPACK_DEBIAN_RUNTIME_PACKAGE_NAME "${CPACK_PACKAGE_NAME}")
else()
set(CPACK_RPM_RUNTIME_PACKAGE_NAME "${CPACK_PACKAGE_NAME}-asan")
set(CPACK_PACKAGE_NAME "${CPACK_PACKAGE_NAME}-asan")
set(CPACK_RPM_RUNTIME_PACKAGE_NAME "${CPACK_PACKAGE_NAME}")
set(CPACK_RPM_RUNTIME_FILE_NAME "RPM-DEFAULT")
set(CPACK_DEBIAN_RUNTIME_PACKAGE_NAME "${CPACK_PACKAGE_NAME}-asan")
set(CPACK_DEBIAN_RUNTIME_PACKAGE_NAME "${CPACK_PACKAGE_NAME}")
set(CPACK_DEBIAN_RUNTIME_FILE_NAME "DEB-DEFAULT")
list(APPEND CPACK_COMPONENTS_ALL runtime)
endif()
Expand Down

0 comments on commit 81e6411

Please sign in to comment.