From 8eb6447164a2e8baac59a7ef14ed23efd2584f5c Mon Sep 17 00:00:00 2001 From: Dmytro Bogovych Date: Wed, 25 Feb 2026 14:10:11 +0300 Subject: [PATCH] - silence deprecation warnings --- src/CMakeLists.txt | 4 +++- src/libs/resiprocate/CMakeLists.txt | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 2e76bd40..3a26c9bd 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -15,6 +15,7 @@ option (USE_MUSL "Build with MUSL library" OFF) # PIC code by default set (CMAKE_POSITION_INDEPENDENT_CODE ON) set (RUNTIME_CPU_CAPABILITY_DETECTION ON) +set (CMAKE_WARN_DEPRECATED OFF) find_package(OpenSSL REQUIRED) set (OPENSSL_SSL OpenSSL::SSL) @@ -352,10 +353,11 @@ if (USE_EVS_CODEC) set (LIBS_STATIC ${LIBS_STATIC} evs_codec) endif() -target_compile_definitions(rtphone PUBLIC ${DEFINES}) +target_compile_definitions(rtphone PUBLIC ${DEFINES} ) if (TARGET_LINUX) target_link_options(rtphone PUBLIC -Wl,-Bstatic) + target_compile_options(rtphone PUBLIC -Wno-deprecated -Wno-deprecated-declarations) endif() target_link_libraries(rtphone PUBLIC ${LIBS_STATIC}) diff --git a/src/libs/resiprocate/CMakeLists.txt b/src/libs/resiprocate/CMakeLists.txt index 87a88d77..cd04a40e 100644 --- a/src/libs/resiprocate/CMakeLists.txt +++ b/src/libs/resiprocate/CMakeLists.txt @@ -369,7 +369,8 @@ else() endif() find_package(OpenSSL) -target_compile_definitions(resiprocate PUBLIC ${RESIP_DEFINES}) - target_link_libraries(resiprocate PUBLIC OpenSSL::SSL) target_link_libraries(resiprocate PUBLIC OpenSSL::Crypto) + +target_compile_definitions(resiprocate PUBLIC ${RESIP_DEFINES}) +target_compile_options(resiprocate PUBLIC -Wno-deprecated -Wno-deprecated-declarations)