]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: link rgw tests against ${rgw_libs}
authorKefu Chai <kchai@redhat.com>
Mon, 3 Jun 2019 08:36:12 +0000 (16:36 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 3 Jun 2019 17:26:11 +0000 (01:26 +0800)
if `WITH_RADOSGW_AMQP_ENDPOINT` is enabled, we should always link rgw
applications against `RabbitMQ::RabbitMQ` or `amqp_mock`, so, to
simplify the linkage dependencies, we should just use `${rgw_libs}`
instead of using `rgw_a` directly.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/test/rgw/CMakeLists.txt

index 4e399d75ba211f61eabc993cf9d2d3b9990cc6fa..648f14b83651b7a20ea1aacfd70602dee011e441 100644 (file)
@@ -107,7 +107,7 @@ target_link_libraries(unittest_rgw_crypto
 
 add_executable(unittest_rgw_putobj test_rgw_putobj.cc)
 add_ceph_unittest(unittest_rgw_putobj)
-target_link_libraries(unittest_rgw_putobj rgw_a ${UNITTEST_LIBS})
+target_link_libraries(unittest_rgw_putobj ${rgw_libs} ${UNITTEST_LIBS})
 
 add_executable(ceph_test_rgw_throttle
   test_rgw_throttle.cc
@@ -157,11 +157,11 @@ endif()
 add_executable(unittest_rgw_xml test_rgw_xml.cc)
 add_ceph_unittest(unittest_rgw_xml)
 
-target_link_libraries(unittest_rgw_xml rgw_a ${EXPAT_LIBRARIES})
+target_link_libraries(unittest_rgw_xml ${rgw_libs} ${EXPAT_LIBRARIES})
 
 # unittest_rgw_arn
 add_executable(unittest_rgw_arn test_rgw_arn.cc)
 add_ceph_unittest(unittest_rgw_arn)
 
-target_link_libraries(unittest_rgw_arn rgw_a)
+target_link_libraries(unittest_rgw_arn ${rgw_libs})