Skip to content

Commit

Permalink
setting rpath on apple (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
K20shores authored Sep 10, 2024
1 parent 0d6870a commit 954265b
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 954265b

Please sign in to comment.