From c8eadd18afb2e8164dcdd505085bb05649aa5f26 Mon Sep 17 00:00:00 2001 From: Ashutosh Mishra Date: Wed, 19 Oct 2022 13:53:16 +0530 Subject: [PATCH] SWDEV-362882 - Unable to run clinfo/opencl tests The explicit RUNPATH addtion has been revoked after the file reorg. Hence the rpath for discovery of the libs has to be taken care by individual binaries Current patch adds the run path for descovery of the libOpenCL.so Signed-off-by: Ashutosh Mishra Change-Id: Ia3bf9202bea78ecfdb881e40b0eb7a0d4a303ed3 [ROCm/clr commit: 1754b043a30e22db05ea4858c5695165e6442850] --- projects/clr/opencl/tools/clinfo/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/projects/clr/opencl/tools/clinfo/CMakeLists.txt b/projects/clr/opencl/tools/clinfo/CMakeLists.txt index 2af51a0d6b..f2e829f0f7 100644 --- a/projects/clr/opencl/tools/clinfo/CMakeLists.txt +++ b/projects/clr/opencl/tools/clinfo/CMakeLists.txt @@ -6,5 +6,7 @@ target_include_directories(clinfo PRIVATE "../../khronos/headers/opencl2.2/CL" target_link_libraries(clinfo OpenCL) +set_target_properties(clinfo PROPERTIES INSTALL_RPATH "${CPACK_PACKAGING_INSTALL_PREFIX}/lib") + INSTALL(TARGETS clinfo RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})