Skip to content

Commit 702da3a

Browse files
authored
Install the LICENSE file to ${CMAKE_INSTALL_DOCDIR} (#377)
* Install the LICENSE file to ${CMAKE_INSTALL_DOCDIR} ie., {INSTALL_PREFIX}/share/doc/omnitrace/LICENSE Internal ticket: SWDEV-466385 Signed-off-by: David Galiffi <[email protected]> * Add CPACK_RPM_PACKAGE_LICENSE = "MIT" Signed-off-by: David Galiffi <[email protected]> --------- Signed-off-by: David Galiffi <[email protected]>
1 parent b00d1b3 commit 702da3a

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,12 @@ install(
395395
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/modulefiles/${PROJECT_NAME}
396396
COMPONENT setup)
397397

398+
install(
399+
FILES
400+
${PROJECT_SOURCE_DIR}/LICENSE
401+
DESTINATION ${CMAKE_INSTALL_DOCDIR}
402+
COMPONENT setup)
403+
398404
# ------------------------------------------------------------------------------#
399405
#
400406
# install

cmake/ConfigCPack.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ set(CPACK_RPM_PACKAGE_PROVIDES
214214
"${CPACK_RPM_PACKAGE_PROVIDES}"
215215
CACHE STRING "RPM package provides" FORCE)
216216

217+
set(CPACK_RPM_PACKAGE_LICENSE "MIT")
217218
set(CPACK_RPM_FILE_NAME "RPM-DEFAULT")
218219
set(CPACK_RPM_PACKAGE_RELEASE_DIST ON)
219220
set(CPACK_RPM_PACKAGE_AUTOREQPROV ON)

0 commit comments

Comments
 (0)