From 4e78cf9b8c9578d12109ea899f97a9beff1b818d Mon Sep 17 00:00:00 2001 From: David Galiffi Date: Fri, 1 Nov 2024 17:51:00 -0400 Subject: [PATCH] Install LICENCE to ${CMAKE_INSTALL_DOCDIR} (#458) * Install LICENSE to ${CMAKE_INSTALL_DOCDIR} * Update tarball.yml to test for LICENSE file after the install --------- Signed-off-by: David Galiffi [ROCm/rocprofiler-compute commit: 50755de8673e5f53e4e9481f6d05ff8ec8c115f1] --- projects/rocprofiler-compute/.github/workflows/tarball.yml | 3 ++- projects/rocprofiler-compute/CMakeLists.txt | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/projects/rocprofiler-compute/.github/workflows/tarball.yml b/projects/rocprofiler-compute/.github/workflows/tarball.yml index 13cbfcc65b..fe32ded625 100644 --- a/projects/rocprofiler-compute/.github/workflows/tarball.yml +++ b/projects/rocprofiler-compute/.github/workflows/tarball.yml @@ -8,7 +8,7 @@ on: concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true - + jobs: distbuild: runs-on: ubuntu-latest @@ -91,6 +91,7 @@ jobs: test -d $INSTALL_DIR/rocprofiler-compute/libexec/rocprofiler-compute/utils test -s $INSTALL_DIR/rocprofiler-compute/share/rocprofiler-compute/sample/vcopy.cpp test -d $INSTALL_DIR/rocprofiler-compute/share/rocprofiler-compute/modulefiles + test -s $INSTALL_DIR/rocprofiler-compute/share/doc/rocprofiler-compute/LICENSE - name: Query version (setting PYTHONPATH by hand) run: | export PYTHONPATH=${INSTALL_DIR}/python-libs:$PYTHONPATH diff --git a/projects/rocprofiler-compute/CMakeLists.txt b/projects/rocprofiler-compute/CMakeLists.txt index 8f35fbd6a1..b312b6db5f 100644 --- a/projects/rocprofiler-compute/CMakeLists.txt +++ b/projects/rocprofiler-compute/CMakeLists.txt @@ -372,6 +372,11 @@ add_custom_target( "src/${PACKAGE_NAME},cmake/Dockerfile,cmake/rocm_install.sh,docker/docker-entrypoint.sh,src/rocprof_compute_analyze/convertor/mongodb/convert" ) +install( + FILES ${PROJECT_SOURCE_DIR}/LICENSE + DESTINATION ${CMAKE_INSTALL_DOCDIR} + COMPONENT main) + # TEST collateral option(INSTALL_TESTS "Build test suite" OFF) if(INSTALL_TESTS)