From: Kefu Chai Date: Mon, 13 Feb 2017 14:04:24 +0000 (+0800) Subject: cmake: link consumers of libclient with libcommon X-Git-Tag: v12.0.1~411^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0ec167c3daa78ee4896e877939cf922de694d3b3;p=ceph.git cmake: link consumers of libclient with libcommon to avoid linking against to both libceph-common and libcommon at the same time, because both of them will be registered as a provider of lttng provider. Fixes: http://tracker.ceph.com/issues/18838 Signed-off-by: Kefu Chai --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e7266d228e00..4f6325745768 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -886,7 +886,7 @@ if(WITH_LIBCEPHFS) add_subdirectory(client) set(libcephfs_srcs libcephfs.cc) add_library(cephfs ${CEPH_SHARED} ${libcephfs_srcs}) - target_link_libraries(cephfs LINK_PRIVATE client + target_link_libraries(cephfs LINK_PRIVATE client ceph-common ${CRYPTO_LIBS} ${EXTRALIBS}) if(ENABLE_SHARED) foreach(name ceph-common client osdc) @@ -906,7 +906,7 @@ if(WITH_LIBCEPHFS) ceph_syn.cc client/SyntheticClient.cc) add_executable(ceph-syn ${ceph_syn_srcs}) - target_link_libraries(ceph-syn client global-static) + target_link_libraries(ceph-syn client global-static common) set(mount_ceph_srcs mount/mount.ceph.c) @@ -926,7 +926,7 @@ if(WITH_LIBCEPHFS) client/fuse_ll.cc) add_executable(ceph-fuse ${ceph_fuse_srcs}) target_link_libraries(ceph-fuse ${ALLOC_LIBS} ${FUSE_LIBRARIES} - client global-static) + client common global-static) set_target_properties(ceph-fuse PROPERTIES COMPILE_FLAGS "-I${FUSE_INCLUDE_DIRS}") install(TARGETS ceph-fuse DESTINATION bin) install(PROGRAMS mount.fuse.ceph DESTINATION ${CMAKE_INSTALL_SBINDIR}) diff --git a/src/client/CMakeLists.txt b/src/client/CMakeLists.txt index 7ec96e83ab04..3ee5a74a09f4 100644 --- a/src/client/CMakeLists.txt +++ b/src/client/CMakeLists.txt @@ -8,4 +8,4 @@ set(libclient_srcs Trace.cc posix_acl.cc) add_library(client STATIC ${libclient_srcs}) -target_link_libraries(client ceph-common osdc) +target_link_libraries(client osdc)