SWDEV-409575 - Append additional RPATH to libraries and binaries installed in /opt/rocm-ver/lib/rocprofiler

Append the rpath $ORIGIN/.. to component specific libraries
Binaries installed in /opt/rocm-ver/lib/rocprofiler had been appended with $ORIGIN/..
Binaries installed in /opt/rocm-ver/libexec/rocprofiler had been appended with $ORIGIN/../../lib
Used TARGET form for installation of rocprof-ctrl and librocprof-tool in runtime component

Change-Id: I53b7a283c6a8ddea97d4889db6010832389894bb
Αυτή η υποβολή περιλαμβάνεται σε:
Ranjith Ramakrishnan
2023-07-09 01:56:47 -07:00
γονέας 1c11700521
υποβολή 5e4ac01cb1
8 αρχεία άλλαξαν με 34 προσθήκες και 25 διαγραφές
@@ -29,7 +29,8 @@ set_target_properties(
cli_plugin
PROPERTIES CXX_VISIBILITY_PRESET hidden
LINK_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/../exportmap
LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/rocprofiler)
LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/rocprofiler
INSTALL_RPATH "${ROCM_APPEND_PRIVLIB_RPATH}")
target_compile_definitions(cli_plugin PRIVATE HIP_PROF_HIP_API_STRING=1
__HIP_PLATFORM_HCC__=1)