Commit 47154eda authored by Ghislain MARY's avatar Ghislain MARY

Check for DTLS support in polarssl when building with CMake.

parent dad640db
......@@ -151,8 +151,8 @@ if(ENABLE_ZRTP)
endif()
if(ENABLE_DTLS AND ENABLE_SRTP) # DTLS requires SRTP
find_package(PolarSSL)
if(NOT POLARSSL_FOUND)
message(WARNING "Could not find polarssl library, mediastreamer2 will be compiled without DTLS support.")
if(NOT POLARSSL_FOUND OR NOT HAVE_SSL_GET_DTLS_SRTP_PROTECTION_PROFILE)
message(WARNING "Could not find polarssl library with DTLS support, mediastreamer2 will be compiled without DTLS support.")
set(ENABLE_DTLS OFF CACHE BOOL "Build mediastreamer2 with DTLS support." FORCE)
endif()
endif()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment