summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorAdir Lev <adirl@mellanox.com>2017-02-09 16:52:22 +0100
committerAdir Lev <adirl@mellanox.com>2017-02-13 14:28:21 +0100
commit74fc3f6b83812acdd2733c61517a3efc68e0c57d (patch)
tree572a682d2db6447c70748b3900976ac5672952ca /cmake
parentMerge pull request #13056 from optimistyzy/123_logic (diff)
downloadceph-74fc3f6b83812acdd2733c61517a3efc68e0c57d.tar.xz
ceph-74fc3f6b83812acdd2733c61517a3efc68e0c57d.zip
msg/async/rdma: check if exp verbs avail
issue: 975125 Change-Id: I9daa168ca0299887a7238a688508c773b98abde9 Signed-off-by: Adir Lev <adirl@mellanox.com> Signed-off-by: Oren Duer <oren@mellanox.com>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/Findrdma.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/cmake/modules/Findrdma.cmake b/cmake/modules/Findrdma.cmake
index 2799247ba1f..eb31f7922c9 100644
--- a/cmake/modules/Findrdma.cmake
+++ b/cmake/modules/Findrdma.cmake
@@ -20,6 +20,17 @@ endif ()
if (RDMA_FOUND)
message(STATUS "Found libibverbs: ${RDMA_LIBRARY}")
+
+ include(CheckCXXSourceCompiles)
+ CHECK_CXX_SOURCE_COMPILES("
+ #include <infiniband/verbs.h>
+ int main() {
+ struct ibv_context* ctxt;
+ struct ibv_exp_gid_attr gid_attr;
+ ibv_exp_query_gid_attr(ctxt, 1, 0, &gid_attr);
+ return 0;
+ } " HAVE_IBV_EXP)
+
else ()
message(STATUS "Not Found libibverbs: ${RDMA_LIBRARY}")
if (RDMA_FIND_REQUIRED)