mirror of
https://github.com/ceph/ceph
synced 2025-01-19 17:41:39 +00:00
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 a2cad3bb1c
)
This commit is contained in:
parent
76ed2c4035
commit
f40a3fb873
@ -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})
|
||||
|
Loading…
Reference in New Issue
Block a user