Skip to content

Commit

Permalink
Correct debian/rpm
Browse files Browse the repository at this point in the history
  • Loading branch information
lawruble13 committed Feb 9, 2024
1 parent 6f15572 commit 89890a8
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions share/rocmcmakebuildtools/cmake/ROCMCreatePackage.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -346,10 +346,18 @@ macro(rocm_create_package)
CPACK_DEBIAN_DEVEL_PACKAGE_PROVIDES
"${CPACK_DEBIAN_PACKAGE_PROVIDES}"
"${CPACK_PACKAGE_NAME} (= ${CPACK_PACKAGE_VERSION})")
endif()

if(DEFINED CPACK_RPM_DEVEL_PACKAGE_PROVIDES)
rocm_join_if_set(", ",
CPACK_RPM_DEVEL_PACKAGE_PROVIDES
"${CPACK_PACKAGE_NAME} = ${CPACK_PACKAGE_VERSION}"
)
else()
rocm_join_if_set(", "
CPACK_RPM_DEVEL_PACKAGE_PROVIDES
"${CPACK_DEBIAN_PACKAGE_PROVIDES}"
"${CPACK_PACKAGE_NAME} = ${CPACK_PACKAGE_VERSION}")
"${CPACK_RPM_PACKAGE_PROVIDES}"
"${CPACK_PACKAGE_NAME} (= ${CPACK_PACKAGE_VERSION})")
endif()
else()
rocm_package_add_dependencies(COMPONENT devel DEPENDS "${CPACK_PACKAGE_NAME} >= ${CPACK_PACKAGE_VERSION}")
Expand Down

0 comments on commit 89890a8

Please sign in to comment.