PageRenderTime 9ms CodeModel.GetById 1ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/cmake/CARes.cmake

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 21 lines | 18 code | 2 blank | 1 comment | 4 complexity | ae64535730b197d7b9a1f47737a4ea1f MD5 | raw file
 1# -*- cmake -*-
 2include(Linking)
 3include(Prebuilt)
 4
 5set(CARES_FIND_QUIETLY ON)
 6set(CARES_FIND_REQUIRED ON)
 7
 8if (STANDALONE)
 9  include(FindCARes)
10else (STANDALONE)
11    use_prebuilt_binary(ares)
12    add_definitions("-DCARES_STATICLIB")
13    if (WINDOWS)
14        set(CARES_LIBRARIES areslib)
15    elseif (DARWIN)
16       set(CARES_LIBRARIES cares)
17    else (WINDOWS)
18        set(CARES_LIBRARIES cares)
19    endif (WINDOWS)
20    set(CARES_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include/ares)
21endif (STANDALONE)