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
[ROCm/rocprofiler-register commit: 11a4668306]
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
e4b6a828e4
Коммит
ec3d720303
@@ -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
@@ -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")
|
||||
|
||||
# -------------------------------------------------------------------------------------- #
|
||||
#
|
||||
|
||||
Ссылка в новой задаче
Block a user