- silence deprecation warnings
This commit is contained in:
@@ -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)
|
||||
@@ -356,6 +357,7 @@ 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})
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user