include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
include_directories(SYSTEM ${PROJECT_BINARY_DIR}/include)
-if (WITH_SYSTEM_BOOST)
- if(FREEBSD)
- # if boost_python is used then also link with libpython*
- LIST(APPEND Boost_LIBRARIES ${PYTHON_LIBRARIES})
- endif()
-else()
- LIST(APPEND Boost_LIBRARIES "-lz")
-endif()
-
CHECK_INCLUDE_FILE_CXX("boost/asio/coroutine.hpp" HAVE_BOOST_ASIO_COROUTINE)
find_package(Threads REQUIRED)
%files -n librados2
%defattr(-,root,root,-)
%{_libdir}/librados.so.*
+%dir %{_libdir}/ceph
+%{_libdir}/ceph/libceph-common.so
%if %{with lttng}
%{_libdir}/librados_tp.so.*
%endif
usr/lib/librados.so.*
usr/lib/librados_tp.so.*
+usr/lib/ceph/libceph-common.so
# for erasure and compressor plugins
set(CMAKE_INSTALL_PKGLIBDIR ${CMAKE_INSTALL_LIBDIR}/${PROJECT_NAME})
set(CMAKE_INSTALL_FULL_PKGLIBDIR ${CMAKE_INSTALL_FULL_LIBDIR}/${PROJECT_NAME})
+# so libceph-common can be found
+set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
+if(NOT CMAKE_INSTALL_RPATH)
+ set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_FULL_PKGLIBDIR}")
+endif()
+
# to be compatible with configure_files shared with autoconfig
set(bindir ${CMAKE_INSTALL_FULL_BINDIR})
set(sbindir ${CMAKE_INSTALL_FULL_SBINDIR})
common/TrackedOp.cc
common/SloppyCRCMap.cc
common/types.cc
- $<TARGET_OBJECTS:common_buffer_obj>
- $<TARGET_OBJECTS:common_texttable_obj>
log/Log.cc
log/SubsystemMap.cc
mon/MonCap.cc
common/dns_resolve.cc
${arch_files}
${auth_files}
- $<TARGET_OBJECTS:compressor_objs>
${mds_files})
if(LINUX)
list(APPEND libcommon_files msg/async/EventEpoll.cc)
perfglue/disabled_stubs.cc)
endif()
-if(ENABLE_SHARED)
- list(APPEND libcommon_files
- $<TARGET_OBJECTS:global_common_objs>)
-endif(ENABLE_SHARED)
-
-add_library(common STATIC ${libcommon_files}
- $<TARGET_OBJECTS:mon_common_objs>
- $<TARGET_OBJECTS:common_mountcephfs_objs>)
-target_link_libraries(common json_spirit erasure_code rt ${LIB_RESOLV}
- ${Boost_LIBRARIES} ${BLKID_LIBRARIES} ${Backtrace_LIBRARIES}
+add_library(common-objs OBJECT ${libcommon_files})
+add_library(ceph-common SHARED
+ $<TARGET_OBJECTS:common_buffer_obj>
+ $<TARGET_OBJECTS:common_texttable_obj>
+ $<TARGET_OBJECTS:compressor_objs>
+ $<TARGET_OBJECTS:common-objs>
+ $<TARGET_OBJECTS:common_mountcephfs_objs>
+ $<TARGET_OBJECTS:global_common_objs>)
+target_link_libraries(ceph-common json_spirit erasure_code rt ${LIB_RESOLV}
+ ${Boost_THREAD_LIBRARY}
+ ${Boost_SYSTEM_LIBRARY}
+ ${Boost_REGEX_LIBRARY}
+ ${Boost_RANDOM_LIBRARY}
+ ${Boost_PROGRAM_OPTIONS_LIBRARY}
+ ${Boost_DATE_TIME_LIBRARY}
+ ${Boost_IOSTREAMS_LIBRARY}
+ ${BLKID_LIBRARIES} ${Backtrace_LIBRARIES}
${CRYPTO_LIBS} ${CMAKE_THREAD_LIBS_INIT} ${CMAKE_DL_LIBS})
+if(NOT WITH_SYSTEM_BOOST)
+ target_link_libraries(ceph-common ${ZLIB_LIBRARIES})
+endif()
+install(TARGETS ceph-common DESTINATION ${CMAKE_INSTALL_PKGLIBDIR})
+if(WITH_EMBEDDED)
+ add_library(cephd_common STATIC
+ $<TARGET_OBJECTS:common_buffer_obj>
+ $<TARGET_OBJECTS:common_texttable_obj>
+ $<TARGET_OBJECTS:compressor_objs>
+ $<TARGET_OBJECTS:common-objs>
+ $<TARGET_OBJECTS:common_mountcephfs_objs>)
+endif()
set_source_files_properties(${CMAKE_SOURCE_DIR}/src/ceph_ver.c
${CMAKE_SOURCE_DIR}/src/common/version.cc
include(SIMDExt)
if(HAVE_ARMV8_CRC)
add_library(common_crc_aarch64 STATIC common/crc32c_aarch64.c)
- target_link_libraries(common common_crc_aarch64)
+ target_link_libraries(ceph-common common_crc_aarch64)
endif(HAVE_ARMV8_CRC)
add_library(common_utf8 STATIC common/utf8.c)
add_executable(ceph-mon ${ceph_mon_srcs}
$<TARGET_OBJECTS:common_texttable_obj>)
add_dependencies(ceph-mon erasure_code_plugins)
- target_link_libraries(ceph-mon mon common os global ${EXTRALIBS}
+ target_link_libraries(ceph-mon mon ceph-common os global ${EXTRALIBS}
${CMAKE_DL_LIBS})
install(TARGETS ceph-mon DESTINATION bin)
target_link_libraries(cephfs LINK_PRIVATE client
${CRYPTO_LIBS} ${EXTRALIBS})
if(ENABLE_SHARED)
- foreach(name common client osdc)
+ foreach(name ceph-common client osdc)
set(CEPHFS_LINK_FLAGS "${CEPHFS_LINK_FLAGS} -Wl,--exclude-libs,lib${name}.a")
endforeach()
set_target_properties(cephfs PROPERTIES
Trace.cc
posix_acl.cc)
add_library(client STATIC ${libclient_srcs})
-target_link_libraries(client common osdc)
+target_link_libraries(client ceph-common osdc)
add_library(ceph_snappy SHARED ${snappy_sources})
add_dependencies(ceph_snappy ${CMAKE_SOURCE_DIR}/src/ceph_ver.h)
-target_link_libraries(ceph_snappy snappy common)
+target_link_libraries(ceph_snappy snappy)
set_target_properties(ceph_snappy PROPERTIES VERSION 2.0.0 SOVERSION 2)
install(TARGETS ceph_snappy DESTINATION ${compressor_plugin_dir})
add_library(ceph_zlib SHARED ${zlib_sources})
add_dependencies(ceph_zlib ${CMAKE_SOURCE_DIR}/src/ceph_ver.h)
-target_link_libraries(ceph_zlib z common)
+target_link_libraries(ceph_zlib z)
target_include_directories(ceph_zlib PRIVATE "${CMAKE_SOURCE_DIR}/src/isa-l/include")
set_target_properties(ceph_zlib PROPERTIES VERSION 2.0.0 SOVERSION 2)
install(TARGETS ceph_zlib DESTINATION ${compressor_plugin_dir})
add_library(global_common_objs OBJECT ${global_common_files})
add_library(global STATIC ${libglobal_srcs}
$<TARGET_OBJECTS:global_common_objs>)
-target_link_libraries(global common ${DPDK_LIBRARIES} ${EXTRALIBS})
+target_link_libraries(global ceph-common ${DPDK_LIBRARIES} ${EXTRALIBS})
SOVERSION 1)
add_dependencies(cephfs_jni jni-header)
include_directories(${JNI_INCLUDE_DIRS} ${CMAKE_CURRENT_BINARY_DIR})
-target_link_libraries(cephfs_jni LINK_PRIVATE cephfs common ${EXTRALIBS} ${JNI_LIBRARIES})
+target_link_libraries(cephfs_jni LINK_PRIVATE cephfs ceph-common
+ ${EXTRALIBS} ${JNI_LIBRARIES})
install(TARGETS cephfs_jni
DESTINATION ${CMAKE_INSTALL_LIBDIR})
add_library(json_spirit STATIC
json_spirit_reader.cpp
json_spirit_writer.cpp)
-target_link_libraries(json_spirit ${Boost_LIBRARIES} common_utf8)
+target_link_libraries(json_spirit common_utf8)
cephd_cls_kvs
cephd_rados
cephd_rbd
- common
+ cephd_common
common_utf8
erasure_code
global
$<TARGET_OBJECTS:librados_api_obj>
$<TARGET_OBJECTS:librados_objs>
$<TARGET_OBJECTS:common_buffer_obj>)
-target_link_libraries(rados_a osdc common cls_lock_client
+target_link_libraries(rados_a osdc ceph-common cls_lock_client
${BLKID_LIBRARIES} ${CRYPTO_LIBS} ${EXTRALIBS})
if(WITH_LTTNG)
add_dependencies(librados_api_obj librados-tp)
$<TARGET_OBJECTS:librados_objs>
$<TARGET_OBJECTS:common_buffer_obj>)
# LINK_PRIVATE instead of PRIVATE is used to backward compatibility with cmake 2.8.11
- target_link_libraries(librados LINK_PRIVATE osdc common cls_lock_client
+ target_link_libraries(librados LINK_PRIVATE osdc ceph-common cls_lock_client
${BLKID_LIBRARIES} ${CRYPTO_LIBS} ${EXTRALIBS})
set_target_properties(librados PROPERTIES
OUTPUT_NAME rados
add_library(radosstriper ${CEPH_SHARED}
${libradosstriper_srcs}
$<TARGET_OBJECTS:librados_objs>)
-target_link_libraries(radosstriper librados cls_lock_client osdc common pthread ${CRYPTO_LIBS} ${EXTRALIBS})
+target_link_libraries(radosstriper librados cls_lock_client osdc ceph-common pthread ${CRYPTO_LIBS} ${EXTRALIBS})
set_target_properties(radosstriper PROPERTIES
OUPUT_NAME radosstriper
VERSION 1.0.0
cls_rbd_client
cls_lock_client
cls_journal_client
- common
+ ceph-common
pthread
${CMAKE_DL_LIBS}
${EXTRALIBS})
add_library(mds STATIC ${mds_srcs}
$<TARGET_OBJECTS:heap_profiler_objs>
$<TARGET_OBJECTS:common_util_obj>)
-target_link_libraries(mds ${ALLOC_LIBS} osdc common liblua)
+target_link_libraries(mds ${ALLOC_LIBS} osdc ceph-common liblua)
add_executable(rbd-fuse
rbd-fuse.cc)
target_link_libraries(rbd-fuse
- librbd librados common ${FUSE_LIBRARIES})
+ ceph-common librbd librados ${FUSE_LIBRARIES})
install(TARGETS rbd-fuse DESTINATION bin)
add_executable(rbd-replay
rbd-replay.cc)
target_link_libraries(rbd-replay
- librbd librados global rbd_replay rbd_replay_types common)
+ librbd librados global rbd_replay rbd_replay_types ceph-common)
install(TARGETS rbd-replay DESTINATION bin)
set(librbd_replay_ios_srcs
rbd_replay_types
librbd
librados
- common
+ ceph-common
global
babeltrace
babeltrace-ctf
target_link_libraries(rgw_a librados cls_lock_client cls_rgw_client cls_refcount_client
cls_log_client cls_statelog_client cls_timeindex_client cls_version_client
- cls_replica_log_client cls_user_client common common_utf8 global
+ cls_replica_log_client cls_user_client ceph-common common_utf8 global
${CURL_LIBRARIES}
${EXPAT_LIBRARIES}
${OPENLDAP_LIBRARIES} ${CRYPTO_LIBS})
add_executable(ceph_test_rewrite_latency
test_rewrite_latency.cc
)
-target_link_libraries(ceph_test_rewrite_latency common
+target_link_libraries(ceph_test_rewrite_latency ceph-common
${CMAKE_DL_LIBS}
${CMAKE_THREAD_LIBS_INIT} ${CRYPTO_LIBS} m ${EXTRALIBS})
)
add_executable(test_build_libcommon buildtest_skeleton.cc)
-target_link_libraries(test_build_libcommon common pthread ${CRYPTO_LIBS} ${EXTRALIBS})
+target_link_libraries(test_build_libcommon ceph-common pthread ${CRYPTO_LIBS} ${EXTRALIBS})
if(WITH_RADOSGW)
add_executable(test_build_librgw buildtest_skeleton.cc)
endif(WITH_LIBCEPHFS)
add_executable(test_build_librados buildtest_skeleton.cc)
-target_link_libraries(test_build_librados librados pthread ${CRYPTO_LIBS} ${EXTRALIBS} osdc osd os common cls_lock_client ${BLKID_LIBRARIES})
+target_link_libraries(test_build_librados librados pthread ${CRYPTO_LIBS} ${EXTRALIBS} osdc osd os ceph-common cls_lock_client ${BLKID_LIBRARIES})
# bench_log
set(bench_log_srcs
target_link_libraries(ceph_test_librgw_file
rgw
librados
+ ceph-common
${UNITTEST_LIBS}
${EXTRALIBS}
)
target_link_libraries(ceph_test_librgw_file_cd
rgw
librados
+ ceph-common
${UNITTEST_LIBS}
${EXTRALIBS}
)
target_link_libraries(ceph_test_librgw_file_gp
rgw
librados
+ ceph-common
${UNITTEST_LIBS}
${EXTRALIBS}
)
target_link_libraries(ceph_test_librgw_file_nfsns
rgw
librados
- boost_system
+ ceph-common
${UNITTEST_LIBS}
${EXTRALIBS}
)
target_link_libraries(ceph_test_librgw_file_aw
rgw
librados
+ ceph-common
${UNITTEST_LIBS}
${EXTRALIBS}
)
${UNITTEST_CXX_FLAGS})
target_link_libraries(test_rgw_ldap
librados
- common
+ ceph-common
${OPENLDAP_LIBRARIES}
- ${Boost_LIBRARIES}
${UNITTEST_LIBS}
)
${UNITTEST_CXX_FLAGS})
target_link_libraries(ceph_xattr_bench
os
- common
+ ceph-common
${UNITTEST_LIBS}
global
${EXTRALIBS}
${UNITTEST_CXX_FLAGS})
target_link_libraries(ceph_test_filejournal
os
- common
+ ceph-common
${UNITTEST_LIBS}
global
${EXTRALIBS}
test_get_blkdev_size.cc
)
target_link_libraries(ceph_test_get_blkdev_size
- common
+ ceph-common
pthread
${EXTRALIBS}
${BLKID_LIBRARIES}
encoding.cc
)
add_ceph_unittest(unittest_encoding ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_encoding)
-target_link_libraries(unittest_encoding common librados ${XIO_LIBRARY} pthread rt m ${BLKID_LIBRARIES})
+target_link_libraries(unittest_encoding ceph-common librados ${XIO_LIBRARY} pthread rt m ${BLKID_LIBRARIES})
# unittest_addrs
add_executable(unittest_addrs
test_addrs.cc
)
add_ceph_unittest(unittest_addrs ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_addrs)
-target_link_libraries(unittest_addrs common librados ${XIO_LIBRARY} pthread rt m ${BLKID_LIBRARIES})
+target_link_libraries(unittest_addrs ceph-common librados ${XIO_LIBRARY} pthread rt m ${BLKID_LIBRARIES})
# unittest_workqueue
add_executable(unittest_workqueue
test_xlist.cc
)
add_ceph_unittest(unittest_xlist ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_xlist)
-target_link_libraries(unittest_xlist common ${XIO_LIBRARY})
+target_link_libraries(unittest_xlist ceph-common ${XIO_LIBRARY})
# unittest_arch
add_executable(unittest_arch
$<TARGET_OBJECTS:unit-main>
)
add_ceph_unittest(unittest_heartbeatmap ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_heartbeatmap)
-target_link_libraries(unittest_heartbeatmap common global)
+target_link_libraries(unittest_heartbeatmap global ceph-common)
if(${WITH_RADOSGW})
# unittest_formatter
)
add_ceph_unittest(unittest_daemon_config ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_daemon_config)
target_link_libraries(unittest_daemon_config
- common
+ ceph-common
global
${BLKID_LIBRARIES}
${EXTRALIBS}
${UNITTEST_CXX_FLAGS})
target_link_libraries(ceph_test_object_map
os
- common
+ ceph-common
${UNITTEST_LIBS}
global
${EXTRALIBS}
${UNITTEST_CXX_FLAGS})
target_link_libraries(ceph_test_keyvaluedb_atomicity
os
- common
+ ceph-common
${UNITTEST_LIBS}
global
${EXTRALIBS}
${UNITTEST_CXX_FLAGS})
target_link_libraries(ceph_test_keyvaluedb_iterators
os
- common
+ ceph-common
${UNITTEST_LIBS}
global
${EXTRALIBS}
test_str_map.cc
)
add_ceph_unittest(unittest_str_map ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_str_map)
-target_link_libraries(unittest_str_map common global ${BLKID_LIBRARIES})
+target_link_libraries(unittest_str_map ceph-common global ${BLKID_LIBRARIES})
# unittest_sharedptr_registry
add_executable(unittest_sharedptr_registry
add_executable(ceph_erasure_code_benchmark
${CMAKE_SOURCE_DIR}/src/erasure-code/ErasureCode.cc
ceph_erasure_code_benchmark.cc)
-target_link_libraries(ceph_erasure_code_benchmark common ${Boost_PROGRAM_OPTIONS_LIBRARY} global ${CMAKE_DL_LIBS})
+target_link_libraries(ceph_erasure_code_benchmark ceph-common ${Boost_PROGRAM_OPTIONS_LIBRARY} global ${CMAKE_DL_LIBS})
install(TARGETS ceph_erasure_code_benchmark
DESTINATION bin)
add_executable(ceph_erasure_code_non_regression ceph_erasure_code_non_regression.cc)
-target_link_libraries(ceph_erasure_code_non_regression common ${Boost_PROGRAM_OPTIONS_LIBRARY} global ${CMAKE_DL_LIBS})
+target_link_libraries(ceph_erasure_code_non_regression ceph-common ${Boost_PROGRAM_OPTIONS_LIBRARY} global ${CMAKE_DL_LIBS})
add_executable(ceph_erasure_code ceph_erasure_code.cc)
-target_link_libraries(ceph_erasure_code common ${Boost_PROGRAM_OPTIONS_LIBRARY} global ${CMAKE_DL_LIBS})
+target_link_libraries(ceph_erasure_code ceph-common ${Boost_PROGRAM_OPTIONS_LIBRARY} global ${CMAKE_DL_LIBS})
install(TARGETS ceph_erasure_code
DESTINATION bin)
global
${CMAKE_DL_LIBS}
ec_example
- common
+ ceph-common
)
add_dependencies(unittest_erasure_code_plugin
ec_example
add_ceph_unittest(unittest_erasure_code ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_erasure_code)
target_link_libraries(unittest_erasure_code
global
- common
+ ceph-common
)
# unittest_erasure_code_plugin_jerasure
add_ceph_unittest(unittest_erasure_code_plugin_jerasure ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_erasure_code_plugin_jerasure)
target_link_libraries(unittest_erasure_code_plugin_jerasure
global
- common)
+ ceph-common)
add_dependencies(unittest_erasure_code_plugin_jerasure
ec_jerasure)
add_ceph_unittest(unittest_erasure_code_isa ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_erasure_code_isa)
target_link_libraries(unittest_erasure_code_isa
global
- common
+ ceph-common
ec_isa
erasure_code
)
add_ceph_unittest(unittest_erasure_code_plugin_isa ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_erasure_code_plugin_isa)
target_link_libraries(unittest_erasure_code_plugin_isa
global
- common
+ ceph-common
crush
${CMAKE_DL_LIBS}
erasure_code
global
${CMAKE_DL_LIBS}
ec_lrc
- common
+ ceph-common
)
# unittest_erasure_code_plugin_lrc
target_link_libraries(unittest_erasure_code_plugin_lrc
global
${CMAKE_DL_LIBS}
- common)
+ ceph-common)
# unittest_erasure_code_plugin_shec
add_executable(unittest_erasure_code_plugin_shec
target_link_libraries(unittest_erasure_code_plugin_shec
global
${CMAKE_DL_LIBS}
- common)
+ ceph-common)
add_dependencies(unittest_erasure_code_plugin_shec
ec_shec)
target_link_libraries(unittest_erasure_code_example
global
${CMAKE_DL_LIBS}
- common
+ ceph-common
erasure_code
${UNITTEST_LIBS}
)
add_ceph_unittest(unittest_erasure_code_jerasure ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_erasure_code_jerasure)
target_link_libraries(unittest_erasure_code_jerasure
global
- common
+ ceph-common
ec_jerasure
)
target_link_libraries(unittest_erasure_code_shec
global
${CMAKE_DL_LIBS}
- common
+ ceph-common
ec_shec
)
target_link_libraries(unittest_erasure_code_shec_all
global
${CMAKE_DL_LIBS}
- common
+ ceph-common
ec_shec
)
target_link_libraries(unittest_erasure_code_shec_thread
global
${CMAKE_DL_LIBS}
- common
+ ceph-common
ec_shec
)
target_link_libraries(unittest_erasure_code_shec_arguments
global
${CMAKE_DL_LIBS}
- common
+ ceph-common
ec_shec
)
set_target_properties(ceph_test_libcephfs_access PROPERTIES COMPILE_FLAGS
${UNITTEST_CXX_FLAGS})
target_link_libraries(ceph_test_libcephfs_access
+ ceph-common
cephfs
librados
${UNITTEST_LIBS}
test.cc
TestCase.cc)
add_library(radostest STATIC ${libradostest_srcs})
-target_link_libraries(radostest common json_spirit ${EXTRALIBS})
+target_link_libraries(radostest ceph-common json_spirit ${EXTRALIBS})
set_target_properties(radostest PROPERTIES COMPILE_FLAGS ${UNITTEST_CXX_FLAGS})
# ceph_test_rados_api_cmd
target_link_libraries(ceph_test_librbd_api
librbd
librados
- common
+ ceph-common
radostest
${UNITTEST_LIBS})
set_target_properties(ceph_test_librbd_api PROPERTIES COMPILE_FLAGS
$<TARGET_OBJECTS:unit-main>
)
add_ceph_unittest(unittest_mds_sessionfilter ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_mds_sessionfilter)
-target_link_libraries(unittest_mds_sessionfilter mds osdc common global ${BLKID_LIBRARIES})
+target_link_libraries(unittest_mds_sessionfilter mds osdc ceph-common global ${BLKID_LIBRARIES})
simple_dispatcher.cc
)
target_link_libraries(simple_server
- os global common ${Boost_REGEX_LIBRARY}
+ os global ceph-common
${EXTRALIBS}
${CMAKE_DL_LIBS}
)
simple_dispatcher.cc
)
target_link_libraries(simple_client
- os global common ${Boost_REGEX_LIBRARY}
+ os global ceph-common
${EXTRALIBS}
${CMAKE_DL_LIBS}
)
xio_dispatcher.cc
)
target_link_libraries(xio_server
- os global common ${Boost_REGEX_LIBRARY}
+ os global ceph-common
${XIO_LIBRARY} pthread rt
${EXTRALIBS}
${CMAKE_DL_LIBS}
xio_dispatcher.cc
)
target_link_libraries(xio_client
- os global common ${Boost_REGEX_LIBRARY}
+ os global ceph-common
${XIO_LIBRARY} pthread rt
${EXTRALIBS}
${CMAKE_DL_LIBS}
${UNITTEST_CXX_FLAGS})
target_link_libraries(ceph_test_objectstore
os
- common
+ ceph-common
${UNITTEST_LIBS}
global
${EXTRALIBS}
${UNITTEST_CXX_FLAGS})
target_link_libraries(ceph_test_keyvaluedb
os
- common
+ ceph-common
${UNITTEST_LIBS}
global
${EXTRALIBS}
add_executable(unittest_transaction
test_transaction.cc)
add_ceph_unittest(unittest_transaction ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_transaction)
-target_link_libraries(unittest_transaction os common ${XIO_LIBRARY})
+target_link_libraries(unittest_transaction os ceph-common ${XIO_LIBRARY})
# unittest_memstore_clone
add_executable(unittest_memstore_clone
krbd
rbd_types
journal
- common global
+ ceph-common global
${Boost_REGEX_LIBRARY} ${Boost_PROGRAM_OPTIONS_LIBRARY}
${BLKID_LIBRARIES} ${CMAKE_DL_LIBS})
install(TARGETS rbd DESTINATION bin)