From 6c1252ee0319011c9269beabfa9b9729f56bbe26 Mon Sep 17 00:00:00 2001 From: Karl W Schulz Date: Fri, 19 Apr 2024 13:47:58 -0500 Subject: [PATCH] restore tarball generation that was inadvertently removed during packaging updates Signed-off-by: Karl W Schulz [ROCm/rocprofiler-compute commit: 624aeacf319caa98a36a20da92c0fc94a25dfdc6] --- projects/rocprofiler-compute/CMakeLists.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/projects/rocprofiler-compute/CMakeLists.txt b/projects/rocprofiler-compute/CMakeLists.txt index f99db2e3ce..cdf31449ed 100644 --- a/projects/rocprofiler-compute/CMakeLists.txt +++ b/projects/rocprofiler-compute/CMakeLists.txt @@ -406,4 +406,17 @@ if(INSTALL_TESTS) set(CPACK_RPM_TESTS_PACKAGE_REQUIRES ${CPACK_PACKAGE_NAME}) endif() +# Source tarball +set(CPACK_SOURCE_GENERATOR "TGZ") +set(CPACK_SOURCE_PACKAGE_FILE_NAME ${CMAKE_PROJECT_NAME}-${FULL_VERSION_STRING}) +set(CPACK_SOURCE_IGNORE_FILES + ".*~$" + \.git/ + \.github + \.gitmodules + \.gitignore + /tests + /build) +include(CPack) + include(CPack)