From 8eb2c9d1bded05ebf2da863d3b4e1cb303c4a6a2 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Mon, 14 Nov 2016 16:04:48 +0800 Subject: [PATCH] cmake:librbd: move common to the end of linked libraries so the linked libraries are able to find the symbols in libcommon. and do not `list(APPEND librbd ...)` anymore, which is wrong and not necessary. librbd does not depends on krbd. Signed-off-by: Kefu Chai --- src/librbd/CMakeLists.txt | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/librbd/CMakeLists.txt b/src/librbd/CMakeLists.txt index 4ca11682389..521f4f74255 100644 --- a/src/librbd/CMakeLists.txt +++ b/src/librbd/CMakeLists.txt @@ -95,26 +95,19 @@ endif() add_library(librbd ${CEPH_SHARED} librbd.cc) -if(LINUX) - list(APPEND librbd - $ - $ - ) -endif(LINUX) target_link_libraries(librbd LINK_PRIVATE rbd_internal rbd_types journal librados - common osdc cls_rbd_client cls_lock_client cls_journal_client + common pthread udev - keyutils ${CMAKE_DL_LIBS} ${EXTRALIBS}) if(ENABLE_SHARED) -- 2.39.5