Commit d80d9374 authored by Ghislain MARY's avatar Ghislain MARY

Add dependencies when finding bzrtp with CMake.

parent ea8257c0
......@@ -26,6 +26,9 @@
# BZRTP_INCLUDE_DIRS - the bzrtp include directory
# BZRTP_LIBRARIES - The libraries needed to use bzrtp
find_package(PolarSSL REQUIRED)
find_package(XML2)
set(_BZRTP_ROOT_PATHS
${WITH_BZRTP}
${CMAKE_INSTALL_PREFIX}
......@@ -47,6 +50,13 @@ find_library(BZRTP_LIBRARIES
PATH_SUFFIXES bin lib
)
list(APPEND BZRTP_INCLUDE_DIRS ${POLARSSL_INCLUDE_DIRS})
list(APPEND BZRTP_LIBRARIES ${POLARSSL_LIBRARIES})
if(XML2_FOUND)
list(APPEND BZRTP_INCLUDE_DIRS ${XML2_INCLUDE_DIRS})
list(APPEND BZRTP_LIBRARIES ${XML2_LIBRARIES})
endif()
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(BZRTP
DEFAULT_MSG
......
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