Skip to content

Commit 883f92e

Browse files
authored
Solve RPATH bug for relocatable metacall in MacOS (#335)
1 parent 885e526 commit 883f92e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ if(SYSTEM_DIR_INSTALL)
236236
else()
237237
# Find libraries relative to binary
238238
if(APPLE)
239-
set(CMAKE_INSTALL_RPATH "@loader_path/../../../${INSTALL_LIB}")
239+
set(CMAKE_INSTALL_RPATH "@loader_path/${INSTALL_LIB}")
240240
else()
241241
set(CMAKE_INSTALL_RPATH "$ORIGIN/${INSTALL_LIB}")
242242
endif()

0 commit comments

Comments
 (0)