Skip to content

Commit

Permalink
SDRPlayV3 on Mac: Update library path so is works with API 3.12.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
srcejon committed Dec 7, 2023
1 parent bad53f9 commit ae04412
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/samplesource/sdrplayv3/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ target_link_libraries(${TARGET_NAME}
${SDRPLAY_LIBRARIES}
)

# Library name is wrong in 3.12 release
# /usr/local/lib doesn't seem to be searched by default
if (APPLE AND (CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL arm64))
add_custom_command(TARGET ${TARGET_NAME}
POST_BUILD COMMAND
${CMAKE_INSTALL_NAME_TOOL} -change libsdrplay_api_arm64.so.3.12 /Library/SDRplayAPI/3.12.0/lib/libsdrplay_api.so.3.12.0 $<TARGET_FILE:${TARGET_NAME}>)
${CMAKE_INSTALL_NAME_TOOL} -change libsdrplay_api.so.3.12 /usr/local/lib/libsdrplay_api.so.3.12 $<TARGET_FILE:${TARGET_NAME}>)
endif()

install(TARGETS ${TARGET_NAME} DESTINATION ${INSTALL_FOLDER})
Expand Down

0 comments on commit ae04412

Please sign in to comment.