summaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
authorKefu Chai <kchai@redhat.com>2016-06-02 05:15:26 +0200
committerKefu Chai <kchai@redhat.com>2016-06-04 03:38:08 +0200
commit3245df5508f315e39c5992a1c6f434370c008851 (patch)
tree87a147f2595e256e88c584e5cc8b5c9cf0bc2014 /src/test
parentmakefile: install mount.fuse.ceph,mount.ceph into /usr/sbin (diff)
downloadceph-3245df5508f315e39c5992a1c6f434370c008851.tar.xz
ceph-3245df5508f315e39c5992a1c6f434370c008851.zip
cmake: fix linkage of ceph_test_cls_${name}
they should link against cls_${name}_client, instead of against cls_${name} directly. Signed-off-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'src/test')
-rw-r--r--src/test/cls_lock/CMakeLists.txt2
-rw-r--r--src/test/cls_rbd/CMakeLists.txt4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/test/cls_lock/CMakeLists.txt b/src/test/cls_lock/CMakeLists.txt
index c2544915fc7..ef2b6458e28 100644
--- a/src/test/cls_lock/CMakeLists.txt
+++ b/src/test/cls_lock/CMakeLists.txt
@@ -4,7 +4,7 @@ add_executable(ceph_test_cls_lock
set_target_properties(ceph_test_cls_lock PROPERTIES COMPILE_FLAGS
${UNITTEST_CXX_FLAGS})
target_link_libraries(ceph_test_cls_lock
- cls_lock
+ cls_lock_client
librados
global
${UNITTEST_LIBS}
diff --git a/src/test/cls_rbd/CMakeLists.txt b/src/test/cls_rbd/CMakeLists.txt
index 84be512201f..51f063d1706 100644
--- a/src/test/cls_rbd/CMakeLists.txt
+++ b/src/test/cls_rbd/CMakeLists.txt
@@ -8,8 +8,8 @@ set_target_properties(ceph_test_cls_rbd PROPERTIES COMPILE_FLAGS
${UNITTEST_CXX_FLAGS})
target_link_libraries(ceph_test_cls_rbd
librbd
- cls_rbd
- cls_lock
+ cls_rbd_client
+ cls_lock_client
librados
global
${UNITTEST_LIBS}