+10
-10
@@ -33,10 +33,10 @@ elseif(NOT WITHOUT_BOTAN)
|
||||
find_package(BOTAN)
|
||||
endif()
|
||||
|
||||
if(WITH_CARES)
|
||||
find_package(CARES REQUIRED)
|
||||
elseif(NOT WITHOUT_CARES)
|
||||
find_package(CARES)
|
||||
if(WITH_UDNS)
|
||||
find_package(UDNS REQUIRED)
|
||||
elseif(NOT WITHOUT_UDNS)
|
||||
find_package(UDNS)
|
||||
endif()
|
||||
|
||||
# To be able to include the config.h file generated by cmake
|
||||
@@ -68,10 +68,10 @@ if(BOTAN_FOUND)
|
||||
set(BOTAN_INCLUDE_DIRS ${BOTAN_INCLUDE_DIRS} PARENT_SCOPE)
|
||||
endif()
|
||||
|
||||
if(CARES_FOUND)
|
||||
include_directories(${CARES_INCLUDE_DIRS})
|
||||
set(CARES_FOUND ${CARES_FOUND} PARENT_SCOPE)
|
||||
set(CARES_INCLUDE_DIRS ${CARES_INCLUDE_DIRS} PARENT_SCOPE)
|
||||
if(UDNS_FOUND)
|
||||
include_directories(${UDNS_INCLUDE_DIRS})
|
||||
set(UDNS_FOUND ${UDNS_FOUND} PARENT_SCOPE)
|
||||
set(UDNS_INCLUDE_DIRS ${UDNS_INCLUDE_DIRS} PARENT_SCOPE)
|
||||
endif()
|
||||
|
||||
set(POLLER_DOCSTRING "Choose the poller between POLL and EPOLL (Linux-only)")
|
||||
@@ -118,8 +118,8 @@ target_link_libraries(network logger)
|
||||
if(BOTAN_FOUND)
|
||||
target_link_libraries(network ${BOTAN_LIBRARIES})
|
||||
endif()
|
||||
if(CARES_FOUND)
|
||||
target_link_libraries(network ${CARES_LIBRARIES})
|
||||
if(UDNS_FOUND)
|
||||
target_link_libraries(network ${UDNS_LIBRARIES})
|
||||
endif()
|
||||
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user