Skip to content

Commit

Permalink
build: correct macos @rpath
Browse files Browse the repository at this point in the history
  • Loading branch information
elgiano committed Jun 27, 2023
1 parent 1864869 commit ef1fc9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit ef1fc9c

Please sign in to comment.