Fix CPACK_RPM_PACKAGE_LICENSE (#63)

- move install command for license to rocprofiler_register_config_install.cmake
- CPACK_RPM_PACKAGE_LICENSE should be set to license type (i.e. "MIT"), not the path to the license file
Tá an tiomantas seo le fáil i:
Jonathan R. Madsen údaraithe agus GitHub tiomanta 2024-04-25 16:04:09 -05:00
1 tuismitheoir dd231244ee
tiomantas 11a4668306
2 comhad athraithe
+6 -8

Níor tháinig aon chomhaid le do chuardach

+5
Féach ar an gComhad
@@ -3,6 +3,11 @@ include_guard(GLOBAL)
include(CMakePackageConfigHelpers)
install(
FILES ${PROJECT_SOURCE_DIR}/LICENSE
DESTINATION ${CMAKE_INSTALL_DOCDIR}
COMPONENT core)
install(
EXPORT rocprofiler-register-library-targets
FILE rocprofiler-register-library-targets.cmake
+1 -8
Féach ar an gComhad
@@ -75,14 +75,6 @@ else()
set(CPACK_RPM_PACKAGE_REQUIRES "")
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}}")
@@ -188,6 +180,7 @@ if(CPACK_RPM_PACKAGE_RELEASE)
set(CPACK_RPM_PACKAGE_RELEASE_DIST ON)
endif()
set(CPACK_RPM_FILE_NAME "RPM-DEFAULT")
set(CPACK_RPM_PACKAGE_LICENSE "MIT")
# -------------------------------------------------------------------------------------- #
#