From 13211a549ba0799fed62b7a5fc9ecc9b47edfbb7 Mon Sep 17 00:00:00 2001 From: Kiriti Date: Fri, 8 Aug 2025 12:55:33 -0700 Subject: [PATCH] runpath - Fix for mainline --- rocAL_pybind/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rocAL_pybind/CMakeLists.txt b/rocAL_pybind/CMakeLists.txt index 32ba330f1..e9251e670 100644 --- a/rocAL_pybind/CMakeLists.txt +++ b/rocAL_pybind/CMakeLists.txt @@ -211,8 +211,9 @@ if(${BUILD_ROCAL_PYBIND}) # half include_directories(${HALF_INCLUDE_DIRS}) # OpenMP - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}") - set(LINK_LIBRARY_LIST ${LINK_LIBRARY_LIST} OpenMP::OpenMP_CXX) + #set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}") + set(LINK_LIBRARY_LIST ${LINK_LIBRARY_LIST} ${OpenMP_CXX_LIBRARIES}) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wl,-rpath='$ORIGIN:$ORIGIN/llvm/lib'") file(GLOB_RECURSE pyfiles amd/*.py) file(GLOB_RECURSE sources *.cpp)