- switch to normal OpenSSL libraries

This commit is contained in:
2026-02-01 19:37:23 +03:00
parent 4c02805452
commit d2e1b5e203
3 changed files with 17 additions and 9 deletions

View File

@@ -357,7 +357,7 @@ target_compile_definitions(rtphone PUBLIC ${DEFINES})
if (TARGET_LINUX)
target_link_options(rtphone PUBLIC -Wl,-Bstatic)
endif()
target_link_libraries(rtphone PUBLIC ${LIBS_STATIC} ${OPENSSL_SSL} ${OPENSSL_CRYPTO})
target_link_libraries(rtphone PUBLIC ${LIBS_STATIC})
if (TARGET_LINUX)
target_link_options(rtphone PUBLIC -Wl,-Bdynamic)
@@ -384,3 +384,7 @@ target_include_directories(rtphone
# For MSVC static builds
# set_property(TARGET rtphone PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
find_package(OpenSSL REQUIRED)
target_link_libraries(rtphone PUBLIC OpenSSL::SSL)
target_link_libraries(rtphone PUBLIC OpenSSL::Crypto)

View File

@@ -368,5 +368,8 @@ else()
set (RESIP_DEFINES ${RESIP_DEFINES} -DHAVE_ARPA_NAMESER_H)
endif()
find_package(OpenSSL)
target_compile_definitions(resiprocate PUBLIC ${RESIP_DEFINES})
target_link_libraries (resiprocate PUBLIC ${OPENSSL_SSL} ${OPENSSL_CRYPTO})
target_link_libraries(resiprocate PUBLIC OpenSSL::SSL)
target_link_libraries(resiprocate PUBLIC OpenSSL::Crypto)