]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: link global-static against common 19515/head
authorKefu Chai <kchai@redhat.com>
Thu, 14 Dec 2017 10:52:42 +0000 (18:52 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 14 Dec 2017 11:01:34 +0000 (19:01 +0800)
* as global-static references symbols offered by common.
* and remove DPDK_LIBRARIES from global, as it is libcommon which
  is using DPDK.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/global/CMakeLists.txt

index 46de512f5c9f1d3e437d19e61ddcc6786a7095a9..704e0c7dc425c28e48e3f8a913c2fd1958263935 100644 (file)
@@ -10,8 +10,9 @@ add_library(libglobal_objs OBJECT ${libglobal_srcs})
 add_library(global-static STATIC
   $<TARGET_OBJECTS:libglobal_objs>
   $<TARGET_OBJECTS:global_common_objs>)
+target_link_libraries(global-static common)
 
 add_library(global STATIC
   $<TARGET_OBJECTS:libglobal_objs>
   $<TARGET_OBJECTS:global_common_objs>)
-target_link_libraries(global ceph-common ${DPDK_LIBRARIES} ${EXTRALIBS})
+target_link_libraries(global ceph-common ${EXTRALIBS})