Skip to content

Commit

Permalink
setting rpath on apple
Browse files Browse the repository at this point in the history
  • Loading branch information
K20shores committed Sep 5, 2024
1 parent 0d6870a commit 9d7242c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ target_include_directories(musica_python
# Set the rpath for the shared library
if(APPLE)
message(STATUS "Building for MacOS")
set_target_properties(musica_python PROPERTIES
INSTALL_RPATH "@loader_path"
BUILD_WITH_INSTALL_RPATH TRUE
)
elseif(UNIX)
message(STATUS "Building for Linux")
set_target_properties(musica_python PROPERTIES
Expand Down

0 comments on commit 9d7242c

Please sign in to comment.