SWDEV-448381 - CPACK dependency list should be comma separated (#61)

* SWDEV-448381 - CPACK dependency list should be comma separated

* Remove redundant code and update the dependency list in first place

* Update cmake/rocprofiler_register_config_packaging.cmake

---------

Co-authored-by: Jonathan R. Madsen <jrmadsen@users.noreply.github.com>
This commit is contained in:
raramakr
2024-04-25 13:55:14 -07:00
committed by GitHub
parent 2b777139d3
commit dd231244ee
@@ -97,6 +97,8 @@ foreach(COMPONENT_GROUP ${ROCPROFILER_REGISTER_COMPONENT_GROUPS})
if(ROCM_DEP_ROCMCORE OR ROCPROFILER_REGISTER_DEP_ROCMCORE)
list(INSERT _DEP 0 "rocm-core")
endif()
# Dependency list should be separated by comma
string(REPLACE ";" ", " _DEP "${_DEP}")
string(TOUPPER "${COMPONENT_GROUP}" UCOMPONENT)
set(CPACK_DEBIAN_${UCOMPONENT}_PACKAGE_NAME "${PROJECT_NAME}${_SEP}${_NAME}")