This is a gentoo overlay hosting either customized ebuilds I have in use as well as ebuilds for my own projects.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
959 B

From b7bf406cff5e0f82fc87f19d5987cd4e719919e1 Mon Sep 17 00:00:00 2001
From: Lars Wendler <polynomial-c@gentoo.org>
Date: Mon, 8 Apr 2019 16:34:53 +0200
Subject: [PATCH] cmake: Fix build against ncurses with separate libtinfo
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
---
src/tools/rbd/CMakeLists.txt | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/tools/rbd/CMakeLists.txt b/src/tools/rbd/CMakeLists.txt
index 36b2408a8d28..0e38a033ff55 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
@@ -52,7 +55,7 @@ target_link_libraries(rbd librbd librados
cls_journal_client cls_rbd_client
rbd_types
journal
- ceph-common global ncurses
+ ceph-common global ${CURSES_LIBRARIES}
${BLKID_LIBRARIES} ${CMAKE_DL_LIBS})
if(WITH_KRBD)
target_link_libraries(rbd