From c7f68524bf45d96e4d8425a28ae2ca672cf98d20 Mon Sep 17 00:00:00 2001 From: Ammar ELWazir Date: Thu, 26 Oct 2023 08:59:51 -0500 Subject: [PATCH] Fixing ROCM Patch Version issue (#30) [ROCm/rocprofiler-register commit: 5aa94a7160adaac8d6f6a68d04c380faff3ae2a2] --- .../cmake/rocprofiler_register_config_packaging.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/projects/rocprofiler-register/cmake/rocprofiler_register_config_packaging.cmake b/projects/rocprofiler-register/cmake/rocprofiler_register_config_packaging.cmake index 4e13119443..e07ecd968d 100644 --- a/projects/rocprofiler-register/cmake/rocprofiler_register_config_packaging.cmake +++ b/projects/rocprofiler-register/cmake/rocprofiler_register_config_packaging.cmake @@ -7,7 +7,7 @@ set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "${PROJECT_DESCRIPTION}") set(CPACK_PACKAGE_VERSION_MAJOR "${PROJECT_VERSION_MAJOR}") set(CPACK_PACKAGE_VERSION_MINOR "${PROJECT_VERSION_MINOR}") set(CPACK_PACKAGE_VERSION_PATCH "${PROJECT_VERSION_PATCH}") -set(CPACK_PACKAGE_CONTACT "jonathan.madsen@amd.com") +set(CPACK_PACKAGE_CONTACT "ROCm Profiler Support ") set(CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/LICENSE") set(CPACK_INCLUDE_TOPLEVEL_DIRECTORY OFF) set(ROCPROFILER_REGISTER_CPACK_SYSTEM_NAME @@ -96,5 +96,9 @@ set(CPACK_RPM_FILE_NAME "RPM-DEFAULT") set(CPACK_PACKAGE_VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}" ) +if(DEFINED ENV{ROCM_LIBPATCH_VERSION}) + set(CPACK_PACKAGE_VERSION "${CPACK_PACKAGE_VERSION}.$ENV{ROCM_LIBPATCH_VERSION}") + message("Using CPACK_PACKAGE_VERSION ${CPACK_PACKAGE_VERSION}") +endif() include(CPack)