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>
This commit is contained in:
Kefu Chai 2016-06-02 11:15:26 +08:00
parent 52021ff9f0
commit 3245df5508
2 changed files with 3 additions and 3 deletions

View File

@ -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}

View File

@ -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}