From 43d5980ff3b0d358d9743707f076b992573dd92c Mon Sep 17 00:00:00 2001 From: Teon Banek Date: Mon, 30 Apr 2018 11:21:11 +0200 Subject: [PATCH] Disable lz4, zstd and snappy libraries for rocksdb Reviewers: buda, dgleich, msantl Reviewed By: buda Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D1383 --- libs/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/CMakeLists.txt b/libs/CMakeLists.txt index 9a4fe3a83..7106e0ce6 100644 --- a/libs/CMakeLists.txt +++ b/libs/CMakeLists.txt @@ -196,7 +196,10 @@ import_external_library(rocksdb STATIC # That's the reason why NoOps (true) are used as configure # and install commands. Build command uses RocksDB's Makefile. CONFIGURE_COMMAND true - BUILD_COMMAND make -C ${CMAKE_CURRENT_SOURCE_DIR}/rocksdb static_lib + BUILD_COMMAND ROCKSDB_DISABLE_LZ4=1 + ROCKSDB_DISABLE_ZSTD=1 + ROCKSDB_DISABLE_SNAPPY=1 + make -C ${CMAKE_CURRENT_SOURCE_DIR}/rocksdb static_lib -j${NPROC} CC=${CMAKE_C_COMPILER} CXX=${CMAKE_CXX_COMPILER}