diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 6e46a17..1e394c0 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -55,6 +55,10 @@ if(APPLE) set_target_properties(gnuradio-sdrplay3 PROPERTIES INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib" ) + add_custom_command(TARGET gnuradio-sdrplay3 + POST_BUILD COMMAND + ${CMAKE_INSTALL_NAME_TOOL} -change libsdrplay_api.so.3 @rpath/libsdrplay_api.so.3 $ + ) endif(APPLE) ########################################################################