Skip to content

Commit 6c4e892

Browse files
committed
Add a RUNPATH to installed libraries
1 parent 3ab25d0 commit 6c4e892

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ elseif(MACOSX)
115115
endif()
116116

117117
if(UMF_BUILD_SHARED_LIBRARY)
118+
# Set the runtime search path to the directory containing hwloc library
119+
set(CMAKE_INSTALL_RPATH "\$ORIGIN")
120+
118121
if(NOT UMF_DISABLE_HWLOC)
119122
set(HWLOC_LIB ${UMF_HWLOC_NAME})
120123
endif()

0 commit comments

Comments
 (0)