Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMakeLists: Turn off RocksDB build extras. #44

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,17 @@ if (MAPGET_WITH_SERVICE OR MAPGET_WITH_HTTPLIB OR MAPGET_ENABLE_TESTING)
# RocksDB adds ASM as language to the project, upon which CodeCoverage.cmake
# tries to find a matching compiler and fails. So RocksDB must be included
# after CodeCoverage.
set(WITH_GFLAGS NO CACHE BOOL "rocksdb without gflags")
set(WITH_TESTS NO CACHE BOOL "rocksdb without tests")
set(WITH_BENCHMARK_TOOLS NO CACHE BOOL "rocksdb without benchmarking")
set(BENCHMARK_ENABLE_GTEST_TESTS NO CACHE BOOL "rocksdb without gtest")
set(DISABLE_WARNING_AS_ERROR 1 CACHE BOOL "rocksdb warnings are ok")
set(WITH_TOOLS NO CACHE BOOL "RocksDB without tools")
set(WITH_CORE_TOOLS NO CACHE BOOL "RocksDB without core tools")
set(WITH_TRACE_TOOLS NO CACHE BOOL "RocksDB without trace tools")
set(WITH_BENCHMARK_TOOLS NO CACHE BOOL "RocksDB without benchmark tools")

set(WITH_GFLAGS NO CACHE BOOL "RocksDB without gflags")
set(WITH_TESTS NO CACHE BOOL "RocksDB without tests")
set(WITH_RUNTIME_DEBUG NO CACHE BOOL "RocksDB runtime without debug build")

set(BENCHMARK_ENABLE_GTEST_TESTS NO CACHE BOOL "RocksDB without gtest")
set(DISABLE_WARNING_AS_ERROR 1 CACHE BOOL "RocksDB warnings are ok")

FetchContent_Declare(rocksdb
GIT_REPOSITORY "https://github.com/facebook/rocksdb.git"
Expand Down