Skip to content

Commit

Permalink
Merge "Make dpkg and rpm package names match their file names" into a…
Browse files Browse the repository at this point in the history
…md-master
  • Loading branch information
Chris Freehill authored and Gerrit Code Review committed Nov 9, 2019
2 parents 1004a01 + c926d50 commit 8ffe1bc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,17 @@ install(FILES ${SOURCE_DIR}/include/rocm_smi/rocm_smi.h
set(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA
"${CMAKE_CURRENT_SOURCE_DIR}/DEBIAN/postinst;
${CMAKE_CURRENT_SOURCE_DIR}/DEBIAN/prerm")
set (CPACK_DEBIAN_PACKAGE_NAME ${ROCM_SMI_PACKAGE})
set (CPACK_DEBIAN_PACKAGE_VERSION ${PKG_VERSION_STR})

# RPM package specific variables
set(CPACK_RPM_PRE_INSTALL_SCRIPT_FILE
"${CMAKE_CURRENT_SOURCE_DIR}/RPM/rpm_post")
set(CPACK_RPM_POST_UNINSTALL_SCRIPT_FILE
"${CMAKE_CURRENT_SOURCE_DIR}/RPM/rpm_postun")
set (CPACK_RPM_PACKAGE_NAME ${ROCM_SMI_PACKAGE})
set (CPACK_RPM_PACKAGE_VERSION ${PKG_VERSION_STR})

include (CPack)

# Generate Doxygen documentation
Expand Down

0 comments on commit 8ffe1bc

Please sign in to comment.