2021-11-21 10:58:26 +00:00
|
|
|
option(USE_SNAPPY "Enable snappy library" ON)
|
2019-02-19 20:51:44 +00:00
|
|
|
|
2020-09-18 14:18:59 +00:00
|
|
|
if(NOT USE_SNAPPY)
|
2020-08-14 15:44:04 +00:00
|
|
|
if (USE_INTERNAL_SNAPPY_LIBRARY)
|
2020-09-18 14:18:59 +00:00
|
|
|
message (${RECONFIGURE_MESSAGE_LEVEL} "Can't use internal snappy library with USE_SNAPPY=OFF")
|
2020-08-14 15:44:04 +00:00
|
|
|
endif()
|
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
|
2021-11-21 10:58:26 +00:00
|
|
|
option (USE_INTERNAL_SNAPPY_LIBRARY "Set to FALSE to use system snappy library instead of bundled" ON)
|
2019-02-19 20:51:44 +00:00
|
|
|
|
2020-08-14 15:44:04 +00:00
|
|
|
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")
|
2019-09-11 10:01:38 +00:00
|
|
|
endif()
|
2020-08-14 15:44:04 +00:00
|
|
|
else ()
|
|
|
|
set(SNAPPY_LIBRARY snappy)
|
|
|
|
endif()
|
2019-02-19 20:51:44 +00:00
|
|
|
|
2020-08-14 15:44:04 +00:00
|
|
|
message (STATUS "Using snappy: ${SNAPPY_LIBRARY}")
|