mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 20:12:31 +01:00
de49fd842a
This change add WITH_ROCKSDB_{LZ4,BZIP2,ZSTD,snappy} CMake variables that can be set to ON/OFF/AUTO. If variable has default value AUTO, rocksdb links with corresponding compression library. OFF disables compiling/linking with specific compression library, ON forces compiling with it (cmake would throw error if library is not available) Support for ZLIB is added unconditionally, as it is always there.
9 lines
250 B
CMake
9 lines
250 B
CMake
find_path(LZ4_INCLUDE_DIR NAMES lz4.h)
|
|
find_library(LZ4_LIBRARY NAMES lz4)
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(
|
|
LZ4 DEFAULT_MSG
|
|
LZ4_LIBRARY LZ4_INCLUDE_DIR)
|
|
|
|
mark_as_advanced(LZ4_INCLUDE_DIR LZ4_LIBRARY)
|