]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cmake: find_package(RabbitMQ) instead of just checking its header
authorKefu Chai <kchai@redhat.com>
Thu, 21 Feb 2019 04:41:01 +0000 (12:41 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 21 Feb 2019 11:00:24 +0000 (19:00 +0800)
commit95401d8c2fcee53d6143bdd0cede0b833dbf5856
treec97caa6ccd8c0acdac03be0ef38ebcf09e746687
parent9962c35abdfe208d7e92212c58c05100fd9ee0e9
cmake: find_package(RabbitMQ) instead of just checking its header

rabbitmq-c is not a header-only library. so we need to ensure that the
library is also around before linking against it. in this change:

* move the detection down to where librabbitmq is used
* add FindRabbitMQ.cmake for find_package(RabbitMQ)
* s/rabbitmq/RabbitMQ::RabbitMQ/ as the latter is an alias library
target, which has more information attached to it.

Signed-off-by: Kefu Chai <kchai@redhat.com>
CMakeLists.txt
cmake/modules/FindRabbitMQ.cmake [new file with mode: 0644]
src/rgw/CMakeLists.txt