From b233005a745a92c65276536e220e57b50c789744 Mon Sep 17 00:00:00 2001 From: Matt Benjamin Date: Mon, 2 May 2016 20:52:59 -0400 Subject: cmake: fix rbd-nbd linkage Use correct name for librbd, add parse_secret_objs and its keyutils libdep. Signed-off-by: Matt Benjamin --- src/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index bf913cd30dd..1db3034d5d8 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1005,8 +1005,10 @@ add_library(krbd_objs OBJECT krbd.cc) if(${WITH_RBD}) add_subdirectory(librbd) - add_executable(rbd-nbd tools/rbd_nbd/rbd-nbd.cc) - target_link_libraries(rbd-nbd rbd librados global ${Boost_REGEX_LIBRARY}) + add_executable(rbd-nbd tools/rbd_nbd/rbd-nbd.cc + $) + target_link_libraries(rbd-nbd librbd librados global keyutils + ${Boost_REGEX_LIBRARY}) set(rbd_mirror_internal tools/rbd_mirror/ClusterWatcher.cc -- cgit v1.2.3