diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 76290609..c224fab7 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -98,6 +98,8 @@ set ( CPACK_PACKAGE_VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERS set ( CPACK_PACKAGE_CONTACT "ATMI Support " ) set ( CPACK_PACKAGE_DESCRIPTION_SUMMARY "Asynchronous Task and Memory Interface" ) set ( CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/../LICENSE.txt" ) +install( FILES ${CPACK_RESOURCE_FILE_LICENSE} DESTINATION share/doc/atmi ) + if ( NOT DEFINED CPACK_PACKAGING_INSTALL_PREFIX ) set ( CPACK_PACKAGING_INSTALL_PREFIX /opt/rocm/atmi ) endif() @@ -151,6 +153,7 @@ set ( CPACK_RPM_PACKAGE_REQUIRES "hsa-rocr-dev" ) 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_COMPONENT_INSTALL ON) +set ( CPACK_RPM_PACKAGE_LICENSE "MIT" ) ## Set components set ( CPACK_COMPONENTS_ALL runtime cplugin device_runtime )