summaryrefslogtreecommitdiffstats
path: root/src/global/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/global/CMakeLists.txt')
-rw-r--r--src/global/CMakeLists.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/global/CMakeLists.txt b/src/global/CMakeLists.txt
index 079d78bbc29..46de512f5c9 100644
--- a/src/global/CMakeLists.txt
+++ b/src/global/CMakeLists.txt
@@ -5,6 +5,13 @@ set(libglobal_srcs
set(global_common_files
global_context.cc)
add_library(global_common_objs OBJECT ${global_common_files})
-add_library(global STATIC ${libglobal_srcs}
+add_library(libglobal_objs OBJECT ${libglobal_srcs})
+
+add_library(global-static STATIC
+ $<TARGET_OBJECTS:libglobal_objs>
+ $<TARGET_OBJECTS:global_common_objs>)
+
+add_library(global STATIC
+ $<TARGET_OBJECTS:libglobal_objs>
$<TARGET_OBJECTS:global_common_objs>)
target_link_libraries(global ceph-common ${DPDK_LIBRARIES} ${EXTRALIBS})