Skip to content

Commit

Permalink
Add missing parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
lawruble13 committed Mar 28, 2024
1 parent bb14d2e commit 0d0dd9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions share/rocmcmakebuildtools/cmake/ROCMCreatePackage.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ macro(rocm_create_package)
endif()
rocm_setup_license(${PARSE_HEADER_ONLY})
if(PARSE_COMPONENTS)
rocm_set_comp_cpackvar(PARSE_HEADER_ONLY "${PARSE_COMPONENTS}")
rocm_set_comp_cpackvar(PARSE_HEADER_ONLY "${PARSE_SUFFIX}" "${PARSE_COMPONENTS}")
endif()
include(CPack)
set(ROCM_PACKAGE_CREATED TRUE CACHE INTERNAL "Track whether rocm_create_package has been called.")
Expand Down Expand Up @@ -522,7 +522,6 @@ macro(rocm_set_comp_cpackvar HEADER_ONLY NAME_SUFFIX components)
set(CPACK_ARCHIVE_COMPONENT_INSTALL ON)

if(NOT ROCM_USE_DEV_COMPONENT OR NOT ${HEADER_ONLY})
set(CPACK_RPM_MAIN_COMPONENT "runtime")
rocm_compute_component_package_name("runtime" "${CPACK_PACKAGE_NAME}" "${NAME_SUFFIX}" ${HEADER_ONLY})
if (NOT ENABLE_ASAN_PACKAGING)
set(CPACK_DEBIAN_RUNTIME_FILE_NAME
Expand All @@ -532,6 +531,7 @@ macro(rocm_set_comp_cpackvar HEADER_ONLY NAME_SUFFIX components)
set(CPACK_DEBIAN_RUNTIME_FILE_NAME "DEB-DEFAULT")
endif()
if (NOT ${HEADER_ONLY} AND BUILD_SHARED_LIBS)
set(CPACK_RPM_MAIN_COMPONENT "runtime")
list(APPEND CPACK_COMPONENTS_ALL runtime)
endif()
endif()
Expand Down

0 comments on commit 0d0dd9e

Please sign in to comment.