- silence deprecation warnings

This commit is contained in:
2026-02-25 14:10:11 +03:00
parent 273c72498e
commit 8eb6447164
2 changed files with 6 additions and 3 deletions

View File

@@ -15,6 +15,7 @@ option (USE_MUSL "Build with MUSL library" OFF)
# PIC code by default # PIC code by default
set (CMAKE_POSITION_INDEPENDENT_CODE ON) set (CMAKE_POSITION_INDEPENDENT_CODE ON)
set (RUNTIME_CPU_CAPABILITY_DETECTION ON) set (RUNTIME_CPU_CAPABILITY_DETECTION ON)
set (CMAKE_WARN_DEPRECATED OFF)
find_package(OpenSSL REQUIRED) find_package(OpenSSL REQUIRED)
set (OPENSSL_SSL OpenSSL::SSL) set (OPENSSL_SSL OpenSSL::SSL)
@@ -356,6 +357,7 @@ target_compile_definitions(rtphone PUBLIC ${DEFINES})
if (TARGET_LINUX) if (TARGET_LINUX)
target_link_options(rtphone PUBLIC -Wl,-Bstatic) target_link_options(rtphone PUBLIC -Wl,-Bstatic)
target_compile_options(rtphone PUBLIC -Wno-deprecated -Wno-deprecated-declarations)
endif() endif()
target_link_libraries(rtphone PUBLIC ${LIBS_STATIC}) target_link_libraries(rtphone PUBLIC ${LIBS_STATIC})

View File

@@ -369,7 +369,8 @@ else()
endif() endif()
find_package(OpenSSL) find_package(OpenSSL)
target_compile_definitions(resiprocate PUBLIC ${RESIP_DEFINES})
target_link_libraries(resiprocate PUBLIC OpenSSL::SSL) target_link_libraries(resiprocate PUBLIC OpenSSL::SSL)
target_link_libraries(resiprocate PUBLIC OpenSSL::Crypto) target_link_libraries(resiprocate PUBLIC OpenSSL::Crypto)
target_compile_definitions(resiprocate PUBLIC ${RESIP_DEFINES})
target_compile_options(resiprocate PUBLIC -Wno-deprecated -Wno-deprecated-declarations)