From: Kefu Chai Date: Thu, 14 Dec 2017 10:52:42 +0000 (+0800) Subject: cmake: link global-static against common X-Git-Tag: v13.0.2~758^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F19515%2Fhead;p=ceph.git cmake: link global-static against common * 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 --- diff --git a/src/global/CMakeLists.txt b/src/global/CMakeLists.txt index 46de512f5c9f..704e0c7dc425 100644 --- a/src/global/CMakeLists.txt +++ b/src/global/CMakeLists.txt @@ -10,8 +10,9 @@ add_library(libglobal_objs OBJECT ${libglobal_srcs}) add_library(global-static STATIC $ $) +target_link_libraries(global-static common) add_library(global STATIC $ $) -target_link_libraries(global ceph-common ${DPDK_LIBRARIES} ${EXTRALIBS}) +target_link_libraries(global ceph-common ${EXTRALIBS})