diff --git a/CMakeLists.txt b/CMakeLists.txt index 53ac09b..b2934a6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -80,7 +80,7 @@ if (CUSTOM_TORCH) set(CMAKE_INSTALL_RPATH "$ORIGIN/ignore") elseif (APPLE) file(GLOB TORCH_SO "${TORCH_INSTALL_PREFIX}/lib/*.dylib") - set(CMAKE_INSTALL_RPATH "@executable_path/ignore") + set(CMAKE_INSTALL_RPATH "@loader_path/ignore") elseif (MSVC) file(GLOB TORCH_SO "${TORCH_INSTALL_PREFIX}/lib/*.dll") endif()