From facca4fd12364e0107fbfca6d59ca9b7334f0ba0 Mon Sep 17 00:00:00 2001 From: Sriraksha Nagaraj Date: Mon, 16 Oct 2023 18:08:31 +0000 Subject: [PATCH] SWDEV-399631 : Fixing the regression issue Change-Id: I9b2866e69ca2969405d06ac267eb17461b643eec [ROCm/rocprofiler commit: ab288c8de8a1269f5e0c343de0932997094dbca2] --- projects/rocprofiler/tests-v2/HSAToolLibrary/CMakeLists.txt | 2 +- projects/rocprofiler/tests-v2/unittests/core/CMakeLists.txt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/projects/rocprofiler/tests-v2/HSAToolLibrary/CMakeLists.txt b/projects/rocprofiler/tests-v2/HSAToolLibrary/CMakeLists.txt index c61e06248a..eb27532977 100644 --- a/projects/rocprofiler/tests-v2/HSAToolLibrary/CMakeLists.txt +++ b/projects/rocprofiler/tests-v2/HSAToolLibrary/CMakeLists.txt @@ -44,7 +44,7 @@ set_target_properties( install( TARGETS test_hsatool_library LIBRARY - DESTINATION ${CMAKE_INSTALL_LIBDIR}/rocprofiler + DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/${PROJECT_NAME}/tests COMPONENT tests) target_link_libraries(test_hsatool_library PRIVATE hsa-runtime64::hsa-runtime64) diff --git a/projects/rocprofiler/tests-v2/unittests/core/CMakeLists.txt b/projects/rocprofiler/tests-v2/unittests/core/CMakeLists.txt index 10acbe8271..c9c02a5cd6 100644 --- a/projects/rocprofiler/tests-v2/unittests/core/CMakeLists.txt +++ b/projects/rocprofiler/tests-v2/unittests/core/CMakeLists.txt @@ -229,6 +229,8 @@ target_compile_definitions( PRIVATE PROF_API_IMPL HIP_PROF_HIP_API_STRING=1 __HIP_PLATFORM_AMD__=1) target_link_libraries(runCoreUnitTests PRIVATE rocprofiler::build-flags) +set_target_properties(runCoreUnitTests PROPERTIES + INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATAROOTDIR}/${PROJECT_NAME}/tests") target_link_libraries( runCoreUnitTests PRIVATE ${AQLPROFILE_LIB}