- silence deprecation warnings
This commit is contained in:
@@ -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)
|
||||||
@@ -352,10 +353,11 @@ if (USE_EVS_CODEC)
|
|||||||
set (LIBS_STATIC ${LIBS_STATIC} evs_codec)
|
set (LIBS_STATIC ${LIBS_STATIC} evs_codec)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
target_compile_definitions(rtphone PUBLIC ${DEFINES})
|
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})
|
||||||
|
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user