]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: link consumers of libclient with libcommon
authorKefu Chai <kchai@redhat.com>
Mon, 13 Feb 2017 14:04:24 +0000 (22:04 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 13 Feb 2017 14:35:30 +0000 (22:35 +0800)
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 <kchai@redhat.com>
src/CMakeLists.txt
src/client/CMakeLists.txt

index e7266d228e00a19d6a445e86234722d0f4bbb014..4f6325745768a80cf12c51a14a75277b4ffcdcdd 100644 (file)
@@ -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})
index 7ec96e83ab040479658085a3fc1087ef487fd283..3ee5a74a09f4eca2db992f724e1fc4fc03184832 100644 (file)
@@ -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)