|
|
|
@ -41,7 +41,7 @@ if(NOT HAVE_FORMAT)
|
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
set(EXOSIP_LIBS eXosip2 osip2 osipparser2) |
|
|
|
|
if(NOT VENDOR_EXOSIP AND NOT WIN32 AND NOT BUILD_STATIC AND NOT BUILD_VENDOR AND NOT BUILD_DRIVER) |
|
|
|
|
if(NOT VENDOR_EXOSIP AND NOT BUILD_STATIC AND NOT BUILD_VENDOR AND NOT BUILD_DRIVER) |
|
|
|
|
pkg_check_modules(OSIP2 libosip2>=5.2.1) |
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
@ -50,12 +50,10 @@ if(OSIP2_FOUND)
|
|
|
|
|
link_directories(${OSIP2_LIBRARY_DIRS}) |
|
|
|
|
else() |
|
|
|
|
include_directories(BEFORE "${CMAKE_CURRENT_SOURCE_DIR}/vendor/libosip2/include" "${CMAKE_CURRENT_SOURCE_DIR}/vendor/libeXosip2/include") |
|
|
|
|
if(NOT WIN32) |
|
|
|
|
pkg_check_modules(CARES libcares>=1.13.0 REQUIRED) |
|
|
|
|
include_directories(${CARES_INCLUDE_DIRECTORIES}) |
|
|
|
|
link_directories(${CARES_LIBRARY_DIRS}) |
|
|
|
|
list(APPEND EXOSIP_LIBS ${CARES_LIBRARIES}) |
|
|
|
|
endif() |
|
|
|
|
pkg_check_modules(CARES libcares>=1.13.0 REQUIRED) |
|
|
|
|
include_directories(${CARES_INCLUDE_DIRECTORIES}) |
|
|
|
|
link_directories(${CARES_LIBRARY_DIRS}) |
|
|
|
|
list(APPEND EXOSIP_LIBS ${CARES_LIBRARIES}) |
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
if(CMAKE_BUILD_TYPE MATCHES "Debug") |
|
|
|
|