cmake: fix POCO_ENABLE_MONGODB

This commit is contained in:
proller 2017-04-19 19:07:20 +03:00 committed by proller
parent 80c2fa2ba7
commit 1d89eafa12

View File

@ -20,7 +20,7 @@ else ()
"${ClickHouse_SOURCE_DIR}/contrib/libpoco/XML/include/"
)
if (POCO_ENABLE_MONGODB)
if (NOT DEFINED POCO_ENABLE_MONGODB OR POCO_ENABLE_MONGODB)
set (Poco_MongoDB_FOUND 1)
set (Poco_MongoDB_LIBRARY PocoMongoDB)
list (APPEND Poco_INCLUDE_DIRS "${ClickHouse_SOURCE_DIR}/contrib/libpoco/MongoDB/include/")