Skip to content

Commit

Permalink
Allow additional provides on header-only packages
Browse files Browse the repository at this point in the history
  • Loading branch information
lawruble13 committed Nov 22, 2023
1 parent 3eb1a3b commit 8905fe5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions share/rocmcmakebuildtools/cmake/ROCMCreatePackage.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -336,8 +336,14 @@ macro(rocm_create_package)
)
endif()
if(PARSE_HEADER_ONLY)
set(CPACK_DEBIAN_DEVEL_PACKAGE_PROVIDES "${CPACK_PACKAGE_NAME} (= ${CPACK_PACKAGE_VERSION})")
set(CPACK_RPM_DEVEL_PACKAGE_PROVIDES "${CPACK_PACKAGE_NAME} = ${CPACK_PACKAGE_VERSION}")
rocm_join_if_set(", "
CPACK_DEBIAN_DEVEL_PACKAGE_PROVIDES
CPACK_DEBIAN_PACKAGE_PROVIDES
"${CPACK_PACKAGE_NAME} (= ${CPACK_PACKAGE_VERSION})")
rocm_join_if_set(", "
CPACK_RPM_DEVEL_PACKAGE_PROVIDES
CPACK_DEBIAN_PACKAGE_PROVIDES
"${CPACK_PACKAGE_NAME} = ${CPACK_PACKAGE_VERSION}")
else()
rocm_package_add_dependencies(COMPONENT devel DEPENDS "${CPACK_PACKAGE_NAME} >= ${CPACK_PACKAGE_VERSION}")
endif()
Expand Down

0 comments on commit 8905fe5

Please sign in to comment.