From fde5dbc359533245c67510da7185c01e1a718388 Mon Sep 17 00:00:00 2001 From: Mooneer Salem Date: Fri, 22 Nov 2024 00:45:32 -0800 Subject: [PATCH] Not sure why we need to link opus to librade only on macOS. --- src/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 009657b..4a67489 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -4,7 +4,11 @@ add_executable(lpcnet_demo lpcnet_demo.c) target_link_libraries(lpcnet_demo opus m) add_library(rade rade_api.c rade_enc.c rade_dec.c rade_enc_data.c rade_dec_data.c) +if(APPLE) +target_link_libraries(rade Python3::Python opus) +else(APPLE) target_link_libraries(rade Python3::Python) +endif(APPLE) target_include_directories(rade PRIVATE "$") target_compile_definitions(rade PRIVATE -DIS_BUILDING_RADE_API=1)