Commit 38f215b3 authored by Ghislain MARY's avatar Ghislain MARY

Allow inclusion of bzrtp CMake project in a global CMake project.

parent 7535f5e7
......@@ -158,7 +158,11 @@ if(ENABLE_SRTP)
endif()
endif()
if(ENABLE_ZRTP)
find_package(BZRTP)
if(LINPHONE_BUILDER_GROUP_EXTERNAL_SOURCE_PATH_BUILDERS)
include("${EP_bzrtp_CONFIG_DIR}/BZRTPConfig.cmake")
else()
find_package(BZRTP)
endif()
if(NOT BZRTP_FOUND)
message(WARNING "Could not find bzrtp library, mediastreamer2 will be compiled without ZRTP support.")
set(ENABLE_ZRTP OFF CACHE BOOL "Build mediastreamer2 with ZRTP support." FORCE)
......
......@@ -39,7 +39,11 @@ else()
find_package(ORTP REQUIRED)
endif()
if(@ENABLE_ZRTP@)
find_package(BZRTP)
if(LINPHONE_BUILDER_GROUP_EXTERNAL_SOURCE_PATH_BUILDERS)
include("${EP_bzrtp_CONFIG_DIR}/BZRTPConfig.cmake")
else()
find_package(BZRTP)
endif()
endif()
get_filename_component(MEDIASTREAMER2_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
......
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