From 998b36f0149324034f0697db3e71d919af8adb56 Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 9 Dec 2019 09:36:37 +0300 Subject: [PATCH] Use installed opus on non-Windows. --- Telegram/cmake/lib_tgvoip.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Telegram/cmake/lib_tgvoip.cmake b/Telegram/cmake/lib_tgvoip.cmake index 493597021..e0c76aa7e 100644 --- a/Telegram/cmake/lib_tgvoip.cmake +++ b/Telegram/cmake/lib_tgvoip.cmake @@ -766,6 +766,10 @@ else() ) endif() +if (NOT WIN32) + target_compile_definitions(lib_tgvoip PRIVATE TGVOIP_USE_INSTALLED_OPUS) +endif() + target_include_directories(lib_tgvoip PUBLIC ${tgvoip_loc}