We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ab25d0 commit 60cc555Copy full SHA for 60cc555
2 files changed
CMakeLists.txt
@@ -63,6 +63,12 @@ option(UMF_FORMAT_CODE_STYLE
63
set(UMF_HWLOC_NAME
64
"hwloc"
65
CACHE STRING "Custom name for hwloc library w/o extension")
66
+set(UMF_INSTALL_RPATH
67
+ ""
68
+ CACHE
69
+ STRING
70
+ "Set the runtime search path to the directory with dependencies (e.g. hwloc)"
71
+)
72
73
# Only a part of skips is treated as a failure now. TODO: extend to all tests
74
option(UMF_TESTS_FAIL_ON_SKIP "Treat skips in tests as fail" OFF)
src/CMakeLists.txt
@@ -115,6 +115,10 @@ elseif(MACOSX)
115
endif()
116
117
if(UMF_BUILD_SHARED_LIBRARY)
118
+ if(UMF_INSTALL_RPATH)
119
+ set(CMAKE_INSTALL_RPATH "${UMF_INSTALL_RPATH}")
120
+ endif()
121
+
122
if(NOT UMF_DISABLE_HWLOC)
123
set(HWLOC_LIB ${UMF_HWLOC_NAME})
124
0 commit comments