]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: Fix build against ncurses with separate libtinfo 27532/head
authorLars Wendler <polynomial-c@gentoo.org>
Mon, 8 Apr 2019 14:34:53 +0000 (16:34 +0200)
committerJason Dillaman <dillaman@redhat.com>
Thu, 11 Apr 2019 18:32:57 +0000 (14:32 -0400)
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
(cherry picked from commit b7bf406cff5e0f82fc87f19d5987cd4e719919e1)

src/tools/rbd/CMakeLists.txt

index 36b2408a8d28af83eaf33abfa28f99b308dedb01..0e38a033ff55966c081b88bc28d5bbeb2661bdc2 100644 (file)
@@ -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