mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-17 13:13:36 +00:00
d456aa86ef
This reverts commit 89419ceb9b
(curl part moved to separate commit)
Squashed:
- termcap removed
- fix for cassandra on apple merged
- cmake: fix "Can't find system zlib library" in unbundled build
- cmake: fix condition when testing for rdkafka platform
- cmake: PROTOBUF_OLD_ABI_COMPAT shouldn't be enabled for internal protobuf
Signed-off-by: Konstantin Podshumok <kpp.live+signed@gmail.com>
22 lines
683 B
CMake
22 lines
683 B
CMake
option(USE_SNAPPY "Enable support of snappy library" ${ENABLE_LIBRARIES})
|
|
|
|
if(NOT USE_SNAPPY)
|
|
if (USE_INTERNAL_SNAPPY_LIBRARY)
|
|
message (${RECONFIGURE_MESSAGE_LEVEL} "Can't use internal snappy library with USE_SNAPPY=OFF")
|
|
endif()
|
|
return()
|
|
endif()
|
|
|
|
option (USE_INTERNAL_SNAPPY_LIBRARY "Set to FALSE to use system snappy library instead of bundled" ${NOT_UNBUNDLED})
|
|
|
|
if(NOT USE_INTERNAL_SNAPPY_LIBRARY)
|
|
find_library(SNAPPY_LIBRARY snappy)
|
|
if (NOT SNAPPY_LIBRARY)
|
|
message (${RECONFIGURE_MESSAGE_LEVEL} "Can't find system snappy library")
|
|
endif()
|
|
else ()
|
|
set(SNAPPY_LIBRARY snappy)
|
|
endif()
|
|
|
|
message (STATUS "Using snappy: ${SNAPPY_LIBRARY}")
|