From ae04412e880af4194ae778f533c8d60e29c6059b Mon Sep 17 00:00:00 2001 From: srcejon Date: Thu, 7 Dec 2023 09:53:20 +0000 Subject: [PATCH] SDRPlayV3 on Mac: Update library path so is works with API 3.12.1. --- plugins/samplesource/sdrplayv3/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/samplesource/sdrplayv3/CMakeLists.txt b/plugins/samplesource/sdrplayv3/CMakeLists.txt index 94d05e0a1..4ef41ee40 100644 --- a/plugins/samplesource/sdrplayv3/CMakeLists.txt +++ b/plugins/samplesource/sdrplayv3/CMakeLists.txt @@ -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 $) + ${CMAKE_INSTALL_NAME_TOOL} -change libsdrplay_api.so.3.12 /usr/local/lib/libsdrplay_api.so.3.12 $) endif() install(TARGETS ${TARGET_NAME} DESTINATION ${INSTALL_FOLDER})