Skip to content

Commit

Permalink
Merge pull request #882 from PatKamin/rpath
Browse files Browse the repository at this point in the history
Add a RUNPATH to installed libumf.so
  • Loading branch information
lukaszstolarczuk authored Nov 8, 2024
2 parents 64675cf + d107b05 commit d62a9ed
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,9 @@ elseif(MACOSX)
endif()

if(UMF_BUILD_SHARED_LIBRARY)
# Set the runtime search path to the directory containing hwloc library
set(CMAKE_INSTALL_RPATH "\$ORIGIN")

if(NOT UMF_DISABLE_HWLOC)
set(HWLOC_LIB ${UMF_HWLOC_NAME})
endif()
Expand Down

0 comments on commit d62a9ed

Please sign in to comment.