From ea85753c9a2700ecb5d93161b431b04f721b0138 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Thu, 28 Jun 2018 13:21:02 +0800 Subject: [PATCH] cmake: remove stale comments Signed-off-by: Kefu Chai --- cmake/modules/Findfcgi.cmake | 2 -- cmake/modules/Findrdmacm.cmake | 2 -- cmake/modules/Findsnappy.cmake | 2 -- cmake/modules/Findverbs.cmake | 11 +---------- 4 files changed, 1 insertion(+), 16 deletions(-) diff --git a/cmake/modules/Findfcgi.cmake b/cmake/modules/Findfcgi.cmake index f355b924fd38c..d4e3c199c6667 100644 --- a/cmake/modules/Findfcgi.cmake +++ b/cmake/modules/Findfcgi.cmake @@ -14,8 +14,6 @@ find_library(FCGI_LIBRARY NAMES fcgi libfcgi PATHS /usr/local/lib /usr/lib) -# 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(fcgi DEFAULT_MSG FCGI_LIBRARY FCGI_INCLUDE_DIR) diff --git a/cmake/modules/Findrdmacm.cmake b/cmake/modules/Findrdmacm.cmake index 310b8130e61c0..c6b199aaa6b6d 100644 --- a/cmake/modules/Findrdmacm.cmake +++ b/cmake/modules/Findrdmacm.cmake @@ -8,8 +8,6 @@ find_path(RDMACM_INCLUDE_DIR rdma/rdma_cma.h) find_library(RDMACM_LIBRARIES rdmacm) -# 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(rdmacm DEFAULT_MSG RDMACM_LIBRARIES RDMACM_INCLUDE_DIR) diff --git a/cmake/modules/Findsnappy.cmake b/cmake/modules/Findsnappy.cmake index b298cd256d027..6ed5fda3d57dd 100644 --- a/cmake/modules/Findsnappy.cmake +++ b/cmake/modules/Findsnappy.cmake @@ -13,8 +13,6 @@ find_library(SNAPPY_LIBRARIES NAMES snappy HINTS ${SNAPPY_ROOT_DIR}/lib) -# 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(snappy DEFAULT_MSG SNAPPY_LIBRARIES SNAPPY_INCLUDE_DIR) diff --git a/cmake/modules/Findverbs.cmake b/cmake/modules/Findverbs.cmake index 613e3618589df..0409fe74aa78d 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 @@ -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(