mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 18:12:02 +00:00
22 lines
641 B
CMake
22 lines
641 B
CMake
option(USE_SNAPPY "Enable snappy library" ON)
|
|
|
|
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" ON)
|
|
|
|
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}")
|