summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKefu Chai <kchai@redhat.com>2019-02-27 08:08:21 +0100
committerKefu Chai <kchai@redhat.com>2019-02-27 08:08:24 +0100
commit8655f89e9b55153e54537659e6b064ac3e90e5f8 (patch)
treeba4a8d8a6744be0fa82d04dc46aa08d9cbbc2b6f
parentcmake: link ${rgw_libs} not rgw_a and rabbitmq (diff)
downloadceph-8655f89e9b55153e54537659e6b064ac3e90e5f8.tar.xz
ceph-8655f89e9b55153e54537659e6b064ac3e90e5f8.zip
cmake: link rgw tests with ${rgw_libs}
they should not link against rabbitmq if WITH_RADOSGW_AMQP_ENDPOINT is not enabled. Signed-off-by: Kefu Chai <kchai@redhat.com>
-rw-r--r--src/rgw/CMakeLists.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rgw/CMakeLists.txt b/src/rgw/CMakeLists.txt
index 9eb91caa42a..ccc4f74cfe4 100644
--- a/src/rgw/CMakeLists.txt
+++ b/src/rgw/CMakeLists.txt
@@ -348,14 +348,14 @@ if(WITH_TESTS)
add_executable(ceph_rgw_jsonparser
rgw_jsonparser.cc)
target_link_libraries(ceph_rgw_jsonparser
- rgw_a
- global rabbitmq)
+ ${rgw_libs}
+ global)
add_executable(ceph_rgw_multiparser
rgw_multiparser.cc)
target_link_libraries(ceph_rgw_multiparser
- rgw_a
- global rabbitmq)
+ ${rgw_libs}
+ global)
install(TARGETS
ceph_rgw_jsonparser