Debian Codegraph @

deps/curl/CMake/FindCARES.cmake

raw
1 # - Find c-ares
2 # Find the c-ares includes and library
3 # This module defines
4 # CARES_INCLUDE_DIR, where to find ares.h, etc.
5 # CARES_LIBRARIES, the libraries needed to use c-ares.
6 # CARES_FOUND, If false, do not try to use c-ares.
7 # also defined, but not for general use are
8 # CARES_LIBRARY, where to find the c-ares library.
9
10 find_path(CARES_INCLUDE_DIR ares.h)
11
12 set(CARES_NAMES ${CARES_NAMES} cares)
13 find_library(CARES_LIBRARY
14 NAMES ${CARES_NAMES}
15 )
16
17 include(FindPackageHandleStandardArgs)
18 find_package_handle_standard_args(CARES
19 REQUIRED_VARS CARES_LIBRARY CARES_INCLUDE_DIR)
20
21 mark_as_advanced(
22 CARES_LIBRARY
23 CARES_INCLUDE_DIR
24 )