summaryrefslogtreecommitdiff
path: root/indra/cmake/CARes.cmake
blob: baa55aa49dca5120c7a1e8c59454630cc42a4683 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# -*- cmake -*-
include(Linking)
include(Prebuilt)

set(CARES_FIND_QUIETLY ON)
set(CARES_FIND_REQUIRED ON)

if (USESYSTEMLIBS)
  include(FindCARes)
else (USESYSTEMLIBS)
    use_prebuilt_binary(ares)
    add_definitions("-DCARES_STATICLIB")
    if (WINDOWS)
        set(CARES_LIBRARIES areslib)
    elseif (DARWIN)
       set(CARES_LIBRARIES cares)
    else (WINDOWS)
        set(CARES_LIBRARIES cares)
    endif (WINDOWS)
    set(CARES_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include/ares)
endif (USESYSTEMLIBS)