blob: 1b72e5447dbea87dd7d24e6fa6ee6748663c112f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
diff --git a/src/tools/rbd/CMakeLists.txt b/src/tools/rbd/CMakeLists.txt
index 7aa42e9efd..66186b159f 100644
--- a/src/tools/rbd/CMakeLists.txt
+++ b/src/tools/rbd/CMakeLists.txt
@@ -1,3 +1,6 @@
+set(CURSES_NEED_NCURSES TRUE)
+find_package(Curses REQUIRED)
+
set(rbd_srcs
rbd.cc
ArgumentTypes.cc
@@ -46,7 +49,7 @@ target_link_libraries(rbd librbd librados
cls_journal_client cls_rbd_client
rbd_types
journal
- ceph-common global
+ ceph-common global ${CURSES_LIBRARIES}
${BLKID_LIBRARIES} ${CMAKE_DL_LIBS})
if(WITH_KRBD)
target_link_libraries(rbd
|