]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
cmake:librbd: move common to the end of linked libraries
authorKefu Chai <kchai@redhat.com>
Mon, 14 Nov 2016 08:04:48 +0000 (16:04 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 14 Nov 2016 10:38:55 +0000 (18:38 +0800)
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 <kchai@redhat.com>
src/librbd/CMakeLists.txt

index 4ca11682389dfe92dcdc04477504f69c9a91c45f..521f4f742557d1cef5cd50e0bbb13d78b8bb7170 100644 (file)
@@ -95,26 +95,19 @@ endif()
 
 add_library(librbd ${CEPH_SHARED}
   librbd.cc)
-if(LINUX)
-  list(APPEND librbd 
-    $<TARGET_OBJECTS:parse_secret_objs>  
-    $<TARGET_OBJECTS:krbd_objs>
-    )
-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)