From: Kefu Chai Date: Mon, 14 Nov 2016 08:04:48 +0000 (+0800) Subject: cmake:librbd: move common to the end of linked libraries X-Git-Tag: v11.1.0~303^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8eb2c9d1bded05ebf2da863d3b4e1cb303c4a6a2;p=ceph.git 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 --- diff --git a/src/librbd/CMakeLists.txt b/src/librbd/CMakeLists.txt index 4ca11682389d..521f4f742557 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)