Skip to content

Commit d107b05

Browse files
committed
Add a RUNPATH to installed libraries
1 parent 64675cf commit d107b05

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
@@ -153,6 +153,9 @@ elseif(MACOSX)
153153
endif()
154154

155155
if(UMF_BUILD_SHARED_LIBRARY)
156+
# Set the runtime search path to the directory containing hwloc library
157+
set(CMAKE_INSTALL_RPATH "\$ORIGIN")
158+
156159
if(NOT UMF_DISABLE_HWLOC)
157160
set(HWLOC_LIB ${UMF_HWLOC_NAME})
158161
endif()

0 commit comments

Comments
 (0)