Skip to content

Commit 38d46a0

Browse files
authored
Merge pull request dacelib#61 from dacelib/isinf
Fix MacOS rpath handling
2 parents 8196b4b + dcb2ec4 commit 38d46a0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ if(WIN32)
2626
elseif(APPLE)
2727
cmake_policy(SET CMP0042 NEW)
2828
cmake_policy(SET CMP0068 NEW)
29-
set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
30-
set(CMAKE_INSTALL_NAME_DIR "@loader_path")
29+
# build libraries use full hard-coded binary path, install libraries replace it by @rpath
30+
set(CMAKE_MACOSX_RPATH OFF)
31+
set(CMAKE_INSTALL_NAME_DIR "@rpath")
3132
endif(WIN32)
3233

3334

0 commit comments

Comments
 (0)