summaryrefslogtreecommitdiffstats
path: root/cmake/modules/Findverbs.cmake
diff options
context:
space:
mode:
authorKefu Chai <kchai@redhat.com>2018-06-28 07:21:02 +0200
committerKefu Chai <kchai@redhat.com>2018-06-28 07:21:02 +0200
commitea85753c9a2700ecb5d93161b431b04f721b0138 (patch)
tree4372237364e073178f02fb274e083e98720dae04 /cmake/modules/Findverbs.cmake
parentMerge pull request #22726 from yuriw/wip-yuriw-crontab (diff)
downloadceph-ea85753c9a2700ecb5d93161b431b04f721b0138.tar.xz
ceph-ea85753c9a2700ecb5d93161b431b04f721b0138.zip
cmake: remove stale comments
Signed-off-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'cmake/modules/Findverbs.cmake')
-rw-r--r--cmake/modules/Findverbs.cmake11
1 files changed, 1 insertions, 10 deletions
diff --git a/cmake/modules/Findverbs.cmake b/cmake/modules/Findverbs.cmake
index 613e3618589..0409fe74aa7 100644
--- a/cmake/modules/Findverbs.cmake
+++ b/cmake/modules/Findverbs.cmake
@@ -4,17 +4,15 @@
# VERBS_INCLUDE_DIR - where to find ibverbs.h, etc.
# VERBS_LIBRARIES - List of libraries when using ibverbs.
# VERBS_FOUND - True if ibverbs found.
+# HAVE_IBV_EXP - True if experimental verbs is enabled.
find_path(VERBS_INCLUDE_DIR infiniband/verbs.h)
find_library(VERBS_LIBRARIES ibverbs)
-# handle the QUIETLY and REQUIRED arguments and set UUID_FOUND to TRUE if
-# all listed variables are TRUE
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(verbs DEFAULT_MSG VERBS_LIBRARIES VERBS_INCLUDE_DIR)
if(VERBS_FOUND)
- message(STATUS "Found libibverbs: ${VERBS_LIBRARIES}")
include(CheckCXXSourceCompiles)
CHECK_CXX_SOURCE_COMPILES("
#include <infiniband/verbs.h>
@@ -24,13 +22,6 @@ if(VERBS_FOUND)
ibv_exp_query_gid_attr(ctxt, 1, 0, &gid_attr);
return 0;
} " HAVE_IBV_EXP)
-
-else()
- message(STATUS "Not Found libibverbs: ${VERBS_LIBRARIES}")
- if (VERBS_FIND_REQUIRED)
- message(STATUS "Looked for libibverbs named ${VERBS_NAMES}.")
- message(FATAL_ERROR "Could NOT find libibverbs")
- endif()
endif()
mark_as_advanced(