diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2017-02-09 16:55:02 +0000 |
---|---|---|
committer | Vladislav Vaintroub <wlad@mariadb.com> | 2017-02-09 16:55:02 +0000 |
commit | de49fd842a8132abb94a6ee25a84fb95d7d9aaaa (patch) | |
tree | f5516d667937e3f7835c074593e330f1a33c5856 /cmake/FindLZ4.cmake | |
parent | 241e8a15a29902e72060d2e74b544453ddaa056a (diff) | |
download | mariadb-git-de49fd842a8132abb94a6ee25a84fb95d7d9aaaa.tar.gz |
RocksDB : Add lookup / compiling with optional compression libraries.
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.
Diffstat (limited to 'cmake/FindLZ4.cmake')
-rw-r--r-- | cmake/FindLZ4.cmake | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cmake/FindLZ4.cmake b/cmake/FindLZ4.cmake new file mode 100644 index 00000000000..e97dd63e2b0 --- /dev/null +++ b/cmake/FindLZ4.cmake @@ -0,0 +1,9 @@ +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) |