File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -148,6 +148,16 @@ find_package(IBVerbs)
148148find_package (NUMA REQUIRED)
149149find_package (Threads REQUIRED)
150150
151+ set (CMAKE_COLOR_DIAGNOSTICS ON )
152+ function (msg_red text)
153+ string (ASCII 27 ESC)
154+ message ("${ESC} [31m${text}${ESC} [0m" )
155+ endfunction ()
156+
157+ if (NOT IBVERBS_FOUND)
158+ msg_red("libibverbs not found. Install libibverbs-dev or rdma-core-devel." )
159+ endif ()
160+
151161include (FetchContent)
152162FetchContent_Declare(json URL https://github.com/nlohmann/json/releases/download/v3.11.3/json.tar.xz)
153163FetchContent_MakeAvailable(json)
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ find_path(IBVERBS_INCLUDE_DIRS
2323 ${IBVERBS_ROOT_DIR} /include )
2424
2525find_library (IBVERBS_LIBRARIES
26- NAMES ibverbs libibverbs.so.1
26+ NAMES ibverbs
2727 HINTS
2828 ${IBVERBS_LIB_DIR}
2929 ${IBVERBS_ROOT_DIR}
You can’t perform that action at this time.
0 commit comments