FindCARES.cmake 649 B

123456789101112131415161718192021222324
  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. find_path(CARES_INCLUDE_DIR ares.h)
  10. set(CARES_NAMES ${CARES_NAMES} cares)
  11. find_library(CARES_LIBRARY
  12. NAMES ${CARES_NAMES}
  13. )
  14. include(FindPackageHandleStandardArgs)
  15. find_package_handle_standard_args(CARES
  16. REQUIRED_VARS CARES_LIBRARY CARES_INCLUDE_DIR)
  17. mark_as_advanced(
  18. CARES_LIBRARY
  19. CARES_INCLUDE_DIR
  20. )