2020-07-15 11:16:00 +00:00
|
|
|
option(ENABLE_AMQPCPP "Enalbe AMQP-CPP" ${ENABLE_LIBRARIES})
|
2020-07-10 09:47:50 +00:00
|
|
|
|
2020-05-20 04:28:55 +00:00
|
|
|
if (NOT EXISTS "${ClickHouse_SOURCE_DIR}/contrib/AMQP-CPP/CMakeLists.txt")
|
|
|
|
message (WARNING "submodule contrib/AMQP-CPP is missing. to fix try run: \n git submodule update --init --recursive")
|
2020-08-13 20:10:06 +00:00
|
|
|
set (ENABLE_AMQPCPP 0)
|
2020-05-20 04:28:55 +00:00
|
|
|
endif ()
|
|
|
|
|
2020-08-13 20:10:06 +00:00
|
|
|
if (ENABLE_AMQPCPP)
|
|
|
|
|
|
|
|
set (USE_AMQPCPP 1)
|
|
|
|
set (AMQPCPP_LIBRARY AMQP-CPP)
|
2020-05-20 04:28:55 +00:00
|
|
|
|
2020-08-13 20:10:06 +00:00
|
|
|
set (AMQPCPP_INCLUDE_DIR "${ClickHouse_SOURCE_DIR}/contrib/AMQP-CPP/include")
|
|
|
|
|
|
|
|
list (APPEND AMQPCPP_INCLUDE_DIR
|
|
|
|
"${ClickHouse_SOURCE_DIR}/contrib/AMQP-CPP/include"
|
|
|
|
"${ClickHouse_SOURCE_DIR}/contrib/AMQP-CPP")
|
|
|
|
|
|
|
|
endif()
|
2020-05-20 04:28:55 +00:00
|
|
|
|
|
|
|
message (STATUS "Using AMQP-CPP=${USE_AMQPCPP}: ${AMQPCPP_INCLUDE_DIR} : ${AMQPCPP_LIBRARY}")
|