let libcommon or libceph-common take care of this.
Signed-off-by: Kefu Chai <kchai@redhat.com>
endif()
add_library(common STATIC ${ceph_common_objs})
-target_link_libraries(common
- PRIVATE ${ceph_common_deps})
+target_link_libraries(common ${ceph_common_deps})
add_library(ceph-common SHARED ${ceph_common_objs})
target_link_libraries(ceph-common ${ceph_common_deps})
add_executable(ceph-osd ${ceph_osd_srcs})
add_dependencies(ceph-osd erasure_code_plugins)
target_link_libraries(ceph-osd osd os global-static common
- ${BLKID_LIBRARIES} ${ALLOC_LIBS})
+ ${BLKID_LIBRARIES})
if(WITH_FUSE)
target_link_libraries(ceph-osd ${FUSE_LIBRARIES})
endif()
ceph_fuse.cc
client/fuse_ll.cc)
add_executable(ceph-fuse ${ceph_fuse_srcs})
- target_link_libraries(ceph-fuse ${ALLOC_LIBS} ${FUSE_LIBRARIES}
+ target_link_libraries(ceph-fuse ${FUSE_LIBRARIES}
client ceph-common global-static)
set_target_properties(ceph-fuse PROPERTIES
COMPILE_FLAGS "-I${FUSE_INCLUDE_DIRS}"
add_library(kv STATIC $<TARGET_OBJECTS:kv_objs>)
target_include_directories(kv_objs SYSTEM BEFORE PUBLIC ${ROCKSDB_INCLUDE_DIR})
target_include_directories(kv SYSTEM BEFORE PUBLIC ${ROCKSDB_INCLUDE_DIR})
-target_link_libraries(kv ${LEVELDB_LIBRARIES} ${ROCKSDB_LIBRARIES} ${ALLOC_LIBS} ${SNAPPY_LIBRARIES} ${ZLIB_LIBRARIES})
+target_link_libraries(kv ${LEVELDB_LIBRARIES} ${ROCKSDB_LIBRARIES} ${SNAPPY_LIBRARIES} ${ZLIB_LIBRARIES})
if(WITH_LZ4)
target_link_libraries(kv ${LZ4_LIBRARY})
endif()
${CMAKE_SOURCE_DIR}/src/osdc/Journaler.cc)
add_library(mds STATIC ${mds_srcs})
target_link_libraries(mds PRIVATE
- heap_profiler cpu_profiler ${ALLOC_LIBS} osdc liblua)
+ heap_profiler cpu_profiler osdc liblua)
target_link_libraries(ceph-mgr
osdc client heap_profiler
global-static ceph-common
- Boost::python ${MGR_PYTHON_LIBRARIES} ${CMAKE_DL_LIBS} ${ALLOC_LIBS})
+ Boost::python ${MGR_PYTHON_LIBRARIES} ${CMAKE_DL_LIBS})
set_target_properties(ceph-mgr PROPERTIES
POSITION_INDEPENDENT_CODE ${EXE_LINKER_USE_PIE})
install(TARGETS ceph-mgr DESTINATION bin)
add_library(mon STATIC
${lib_mon_srcs}
$<TARGET_OBJECTS:kv_objs>)
-target_link_libraries(mon heap_profiler ${ALLOC_LIBS})
+target_link_libraries(mon heap_profiler)