summaryrefslogtreecommitdiffstats
path: root/src/global/CMakeLists.txt
diff options
context:
space:
mode:
authorKefu Chai <kchai@redhat.com>2017-12-14 11:52:42 +0100
committerKefu Chai <kchai@redhat.com>2017-12-15 12:16:12 +0100
commitf40a3fb873fd93cde7dad9d2c6e423587f832ca8 (patch)
treea75b6f7556553f837232ccbea683e63295b77d7d /src/global/CMakeLists.txt
parentcmake: link executables against ceph-common (diff)
downloadceph-f40a3fb873fd93cde7dad9d2c6e423587f832ca8.tar.xz
ceph-f40a3fb873fd93cde7dad9d2c6e423587f832ca8.zip
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 <kchai@redhat.com> (cherry picked from commit a2cad3bb1cad57cab5f0acc11310613077866a87)
Diffstat (limited to '')
-rw-r--r--src/global/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
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_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})