$<TARGET_OBJECTS:compressor_objs>
$<TARGET_OBJECTS:common-objs>
$<TARGET_OBJECTS:common_mountcephfs_objs>
- $<TARGET_OBJECTS:crush_objs>)
+ $<TARGET_OBJECTS:crush_objs>
+ $<TARGET_OBJECTS:json_spirit>
+ $<TARGET_OBJECTS:erasure_code>)
set(ceph_common_deps
- json_spirit erasure_code extblkdev arch crc32
+ common_utf8 extblkdev arch crc32
${LIB_RESOLV}
Boost::thread
Boost::system
refcount/cls_refcount_ops.cc
${CMAKE_SOURCE_DIR}/src/common/ceph_json.cc)
add_library(cls_refcount SHARED ${cls_refcount_srcs})
-target_link_libraries(cls_refcount json_spirit)
set_target_properties(cls_refcount PROPERTIES
VERSION "1.0.0"
SOVERSION "1"
rgw/cls_rgw_types.cc
${CMAKE_SOURCE_DIR}/src/common/ceph_json.cc)
add_library(cls_rgw SHARED ${cls_rgw_srcs})
- target_link_libraries(cls_rgw ${FMT_LIB} json_spirit)
+ target_link_libraries(cls_rgw ${FMT_LIB})
target_include_directories(cls_rgw
PUBLIC "${CMAKE_SOURCE_DIR}/src/rgw/driver/rados"
PUBLIC "${CMAKE_SOURCE_DIR}/src/rgw")
CXX_VISIBILITY_PRESET hidden)
install(TARGETS cls_lua DESTINATION ${cls_dir})
target_link_libraries(cls_lua
- ${LUA_LIBRARIES}
- json_spirit)
+ ${LUA_LIBRARIES})
target_include_directories(cls_lua PRIVATE "${LUA_INCLUDE_DIR}")
endif (NOT WIN32)
set(EC_ISA_LIB ec_isa)
endif()
-add_library(erasure_code STATIC ErasureCodePlugin.cc)
+add_library(erasure_code OBJECT ErasureCodePlugin.cc)
target_link_libraries(erasure_code $<$<PLATFORM_ID:Windows>:dlfcn_win32>
${CMAKE_DL_LIBS})
add_library(ec_lrc SHARED ${lrc_srcs})
set_target_properties(ec_lrc PROPERTIES
INSTALL_RPATH "")
-target_link_libraries(ec_lrc json_spirit)
install(TARGETS ec_lrc DESTINATION ${erasure_plugin_dir})
-add_library(json_spirit STATIC
+add_library(json_spirit OBJECT
json_spirit_reader.cpp
json_spirit_writer.cpp)
target_link_libraries(json_spirit common_utf8 Boost::thread)
global
ceph-common
ec_isa
- erasure_code
)
#unittest_erasure_code_plugin_isa
global
ceph-common
${CMAKE_DL_LIBS}
- erasure_code
)
add_dependencies(unittest_erasure_code_plugin_isa
ec_isa)
global
${CMAKE_DL_LIBS}
ceph-common
- erasure_code
${UNITTEST_LIBS}
)
target_link_libraries(radostest PUBLIC
GTest::GTest
ceph-common
- json_spirit
${GSSAPI_LIBRARIES} ${EXTRALIBS})
add_library(radostest-cxx STATIC
testcase_cxx.cc
os
osd
mon
- erasure_code
global)
if(WITH_RADOSGW)