From f40a3fb873fd93cde7dad9d2c6e423587f832ca8 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Thu, 14 Dec 2017 18:52:42 +0800 Subject: [PATCH] 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 (cherry picked from commit a2cad3bb1cad57cab5f0acc11310613077866a87) --- src/global/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/global/CMakeLists.txt b/src/global/CMakeLists.txt index 46de512f5c9..704e0c7dc42 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})