diff options
author | Kefu Chai <tchaikov@gmail.com> | 2017-01-26 16:59:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-26 16:59:36 +0100 |
commit | 8a86a3fd8566ef218820fa7f17edfd6ed73ba364 (patch) | |
tree | b2a675d44b4ca6b9ac053595fc85450072b24bf9 /src/global | |
parent | Merge pull request #13122 from orendu/fix-rdma-compilation (diff) | |
parent | cmake: remove unnecessary linkages (diff) | |
download | ceph-8a86a3fd8566ef218820fa7f17edfd6ed73ba364.tar.xz ceph-8a86a3fd8566ef218820fa7f17edfd6ed73ba364.zip |
Merge pull request #12878 from tchaikov/wip-cmake
cmake: link ceph-{mgr,mon,mds,osd} against libcommon statically
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Diffstat (limited to 'src/global')
-rw-r--r-- | src/global/CMakeLists.txt | 9 |
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}) |