Skip to content

Commit eee94bf

Browse files
committed
wip
1 parent 6cdbfcb commit eee94bf

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,16 @@ find_package(IBVerbs)
148148
find_package(NUMA REQUIRED)
149149
find_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+
151161
include(FetchContent)
152162
FetchContent_Declare(json URL https://github.com/nlohmann/json/releases/download/v3.11.3/json.tar.xz)
153163
FetchContent_MakeAvailable(json)

cmake/FindIBVerbs.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ find_path(IBVERBS_INCLUDE_DIRS
2323
${IBVERBS_ROOT_DIR}/include)
2424

2525
find_library(IBVERBS_LIBRARIES
26-
NAMES ibverbs libibverbs.so.1
26+
NAMES ibverbs
2727
HINTS
2828
${IBVERBS_LIB_DIR}
2929
${IBVERBS_ROOT_DIR}

0 commit comments

Comments
 (0)