Use ENABLE_LIBRARIES option for AMQP-CPP

This is tiny fix, there are more problems that just this small little
bit.
This commit is contained in:
Azat Khuzhin 2020-07-06 21:37:05 +03:00
parent a2047de471
commit 2d2a34d6cd

View File

@ -1,4 +1,4 @@
SET(ENABLE_AMQPCPP 1)
SET(ENABLE_AMQPCPP ${ENABLE_LIBRARIES})
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")
set (ENABLE_AMQPCPP 0)