| 1 | Libraries (such as 'libtorch_cpu.so') and executables (such as
|
| 2 | 'torch_shm_manager') get installed, quite surprisingly, to
|
| 3 | 'lib/pythonX.Y/site-packages/{bin,lib}'. Make sure RUNPATH matches that.
|
| 4 |
|
| 5 | diff --git a/cmake/Dependencies.cmake b/cmake/Dependencies.cmake
|
| 6 | index be45936a8..7b19e5359 100644
|
| 7 | |
| 8 | |
| 9 | @@ -4,7 +4,7 @@ if(APPLE)
|
| 10 | set(CMAKE_MACOSX_RPATH ON)
|
| 11 | set(_rpath_portable_origin "@loader_path")
|
| 12 | else()
|
| 13 | - set(_rpath_portable_origin $ORIGIN)
|
| 14 | + set(_rpath_portable_origin $ORIGIN/../lib)
|
| 15 | endif(APPLE)
|
| 16 | # Use separate rpaths during build and install phases
|
| 17 | set(CMAKE_SKIP_BUILD_RPATH FALSE)
|