summaryrefslogtreecommitdiff
path: root/indra/cmake/CARes.cmake
blob: 4dfcf588c607565302400a9d36f759abf9538de2 (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)

set(CARES_FIND_QUIETLY ON)
set(CARES_FIND_REQUIRED ON)

if (STANDALONE)
  include(FindCARes)
else (STANDALONE)
    if (WINDOWS)
        set(CARES_LIBRARIES areslib)
    elseif (DARWIN)
        set(CARES_LIBRARIES
          optimized ${ARCH_PREBUILT_DIRS_RELEASE}/cares
          debug ${ARCH_PREBUILT_DIRS_DEBUG}/cares
          )
    else (WINDOWS)
        set(CARES_LIBRARIES cares)
    endif (WINDOWS)
    set(CARES_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include/ares)
endif (STANDALONE)