File: Findhiredis.cmake

package info (click to toggle)
gloo-cuda 0.0~git20231202.5354032-5
  • links: PTS, VCS
  • area: contrib
  • in suites: sid
  • size: 2,156 kB
  • sloc: cpp: 21,546; python: 8,179; makefile: 70; sh: 68
file content (31 lines) | stat: -rw-r--r-- 914 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Find the hiredis libraries
#
# The following variables are optionally searched for defaults
#  HIREDIS_ROOT_DIR: Base directory where all hiredis components are found
#  HIREDIS_INCLUDE_DIR: Directory where hiredis headers are found
#  HIREDIS_LIB_DIR: Directory where hiredis library is found
#
# The following are set after configuration is done:
#  HIREDIS_FOUND
#  HIREDIS_INCLUDE_DIRS
#  HIREDIS_LIBRARIES

find_path(HIREDIS_INCLUDE_DIRS
  NAMES hiredis.h
  HINTS
  ${HIREDIS_INCLUDE_DIR}
  ${HIREDIS_ROOT_DIR}
  ${HIREDIS_ROOT_DIR}/include
  PATH_SUFFIXES hiredis)

find_library(HIREDIS_LIBRARIES
  NAMES hiredis
  HINTS
  ${HIREDIS_LIB_DIR}
  ${HIREDIS_ROOT_DIR}
  ${HIREDIS_ROOT_DIR}/lib
  PATH_SUFFIXES hiredis)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(hiredis DEFAULT_MSG HIREDIS_INCLUDE_DIRS HIREDIS_LIBRARIES)
mark_as_advanced(HIREDIS_INCLUDE_DIRS HIREDIS_LIBRARIES)