]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/spdk/Findibverbs.cmake
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / tools / vcpkg / ports / spdk / Findibverbs.cmake
1 # Find the ibverbs libraries
2 #
3 # The following variables are optionally searched for defaults
4 # IBVERBS_ROOT_DIR: Base directory where all ibverbs components are found
5 # IBVERBS_INCLUDE_DIR: Directory where ibverbs headers are found
6 # IBVERBS_LIB_DIR: Directory where ibverbs libraries are found
7
8 # The following are set after configuration is done:
9 # IBVERBS_FOUND
10 # IBVERBS_INCLUDE_DIRS
11 # IBVERBS_LIBRARIES
12
13 FIND_PATH(IBVERBS_INCLUDE_DIRS
14 NAMES infiniband/verbs.h
15 HINTS
16 ${IBVERBS_INCLUDE_DIR}
17 ${IBVERBS_ROOT_DIR}
18 ${IBVERBS_ROOT_DIR}/include)
19
20 FIND_LIBRARY(IBVERBS_LIBRARIES
21 NAMES ibverbs
22 HINTS
23 ${IBVERBS_LIB_DIR}
24 ${IBVERBS_ROOT_DIR}
25 ${IBVERBS_ROOT_DIR}/lib)
26
27 INCLUDE(FindPackageHandleStandardArgs)
28 FIND_PACKAGE_HANDLE_STANDARD_ARGS(ibverbs DEFAULT_MSG IBVERBS_INCLUDE_DIRS IBVERBS_LIBRARIES)
29 MARK_AS_ADVANCED(IBVERBS_INCLUDE_DIR IBVERBS_LIBRARIES)
30
31 IF (NOT IBVERBS_LIBRARIES)
32 SET(IBVERBS_FOUND FALSE)
33 MESSAGE(FATAL_ERROR "ibverbs library not found.\nTry: 'sudo yum install libibverbs-devel libibverbs' (or sudo apt-get install libibverbs-dev libibverbs1)")
34 ENDIF ()