ClickHouse/cmake/find/snappy.cmake
Ivan Lezhankin 5b60053ef7 [WIP]
2019-09-13 17:56:27 +03:00

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 ()