Skip to content

Commit

Permalink
MacOS install RPath
Browse files Browse the repository at this point in the history
  • Loading branch information
Auburn committed Sep 29, 2021
1 parent 640aaa4 commit 98816d6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions NoiseTool/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,14 @@ endif()

if (UNIX)
target_link_options(NoiseTool PRIVATE -pthread)
set_property(TARGET NoiseTool PROPERTY
INSTALL_RPATH "\$ORIGIN/../lib")

if(APPLE)
set_property(TARGET NoiseTool PROPERTY
INSTALL_RPATH "@loader_path/../lib")
else()
set_property(TARGET NoiseTool PROPERTY
INSTALL_RPATH "\$ORIGIN/../lib")
endif()
endif()

if (MSVC)
Expand Down

0 comments on commit 98816d6

Please sign in to comment.