Skip to content

Commit

Permalink
test #3
Browse files Browse the repository at this point in the history
  • Loading branch information
fventuri committed Jun 9, 2024
1 parent 680c918 commit a8243d5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,15 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU"
target_link_options(sdrPlaySupport PRIVATE -pthread)
endif ()

# XCode on MacOS requires rpath for SDRplay API library
if(APPLE)
add_custom_command(
TARGET sdrPlaySupport POST_BUILD
COMMAND ${CMAKE_INSTALL_NAME_TOOL} -add-rpath /usr/local/lib "$<TARGET_FILE:sdrPlaySupport>"
COMMAND ${CMAKE_INSTALL_NAME_TOOL} -change libsdrplay_api.so.3 @rpath/libsdrplay_api.so.3 "$<TARGET_FILE:sdrPlaySupport>"
)
endif(APPLE)

########################################################################
# uninstall target
########################################################################
Expand Down

0 comments on commit a8243d5

Please sign in to comment.