mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-20 05:05:38 +00:00
14 lines
404 B
CMake
14 lines
404 B
CMake
option(USE_SNAPPY "Enable support of snappy library" ON)
|
|
|
|
if (USE_SNAPPY)
|
|
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)
|
|
else ()
|
|
set(SNAPPY_LIBRARY snappy)
|
|
endif()
|
|
|
|
message (STATUS "Using snappy: ${SNAPPY_LIBRARY}")
|
|
endif ()
|