/indra/cmake/CARes.cmake
CMake | 21 lines | 18 code | 2 blank | 1 comment | 4 complexity | ae64535730b197d7b9a1f47737a4ea1f MD5 | raw file
Possible License(s): LGPL-2.1
- # -*- cmake -*-
- include(Linking)
- include(Prebuilt)
- set(CARES_FIND_QUIETLY ON)
- set(CARES_FIND_REQUIRED ON)
- if (STANDALONE)
- include(FindCARes)
- else (STANDALONE)
- 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 (STANDALONE)