2019-10-05 19:25:31 +00:00
|
|
|
option(USE_SNAPPY "Enable support of snappy library" ${ENABLE_LIBRARIES})
|
2019-02-19 20:51:44 +00:00
|
|
|
|
2020-08-13 20:10:06 +00:00
|
|
|
if(USE_SNAPPY)
|
|
|
|
option (USE_INTERNAL_SNAPPY_LIBRARY "Set to FALSE to use system snappy library instead of bundled" ${NOT_UNBUNDLED})
|
2019-02-19 20:51:44 +00:00
|
|
|
|
2020-08-13 20:10:06 +00:00
|
|
|
if(NOT USE_INTERNAL_SNAPPY_LIBRARY)
|
|
|
|
find_library(SNAPPY_LIBRARY snappy)
|
|
|
|
else ()
|
|
|
|
set(SNAPPY_LIBRARY snappy)
|
2019-09-11 10:01:38 +00:00
|
|
|
endif()
|
2019-02-19 20:51:44 +00:00
|
|
|
|
2020-08-13 20:10:06 +00:00
|
|
|
message (STATUS "Using snappy: ${SNAPPY_LIBRARY}")
|
|
|
|
endif ()
|