From 64a0e626e4ecd61e6bfeb7054e0d6a2c814c1e46 Mon Sep 17 00:00:00 2001 From: Ammar ELWazir Date: Tue, 23 Apr 2024 09:00:44 -0500 Subject: [PATCH] Adding License to core package --- cmake/rocprofiler_register_config_packaging.cmake | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmake/rocprofiler_register_config_packaging.cmake b/cmake/rocprofiler_register_config_packaging.cmake index d47f53a4ec..41d4e50fbe 100644 --- a/cmake/rocprofiler_register_config_packaging.cmake +++ b/cmake/rocprofiler_register_config_packaging.cmake @@ -77,6 +77,12 @@ endif() set(CPACK_RPM_PACKAGE_LICENSE "${PROJECT_SOURCE_DIR}/LICENSE") +# Install license file +install( + FILES ${CPACK_RESOURCE_FILE_LICENSE} + DESTINATION ${CMAKE_INSTALL_DOCDIR} + COMPONENT core) + foreach(COMPONENT_GROUP ${ROCPROFILER_REGISTER_COMPONENT_GROUPS}) set(_SEP "${COMPONENT_SEP_${COMPONENT_GROUP}}") set(_DEP "${COMPONENT_DEP_${COMPONENT_GROUP}}")