Add RocksDB to FDBComponents.cmake

This commit is contained in:
Daniel Smith 2020-06-10 21:07:49 +00:00
parent b8ac6ee41e
commit dae91bb05f
2 changed files with 15 additions and 2 deletions

View File

@ -102,6 +102,18 @@ if(GEM_EXECUTABLE)
set(WITH_RUBY ON)
endif()
################################################################################
# RocksDB
################################################################################
if (SSD_ROCKSDB_EXPERIMENTAL)
set(WITH_ROCKSDB_EXPERIMENTAL ON)
else()
set(WITH_ROCKSDB_EXPERIMENTAL ON)
endif()
################################################################################
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/packages)
add_custom_target(packages)
@ -117,6 +129,7 @@ function(print_components)
message(STATUS "Build Documentation (make html): ${WITH_DOCUMENTATION}")
message(STATUS "Build Bindings (depends on Python): ${WITH_PYTHON}")
message(STATUS "Configure CTest (depends on Python): ${WITH_PYTHON}")
message(STATUS "Build with RocksDB: ${WITH_ROCKSDB_EXPERIMENTAL}")
message(STATUS "=========================================")
endfunction()

View File

@ -215,7 +215,7 @@ add_library(fdb_sqlite STATIC
sqlite/sqliteLimit.h
sqlite/sqlite3.amalgamation.c)
if (SSD_ROCKSDB_EXPERIMENTAL)
if (WITH_ROCKSDB_EXPERIMENTAL)
add_definitions(-DSSD_ROCKSDB_EXPERIMENTAL)
# Change this if you want to compile RocksDB with `-march=native`.
set(PORTABLE_ROCKSDB 1)
@ -233,7 +233,7 @@ file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/workloads)
add_flow_target(EXECUTABLE NAME fdbserver SRCS ${FDBSERVER_SRCS})
if (SSD_ROCKSDB_EXPERIMENTAL)
if (WITH_ROCKSDB_EXPERIMENTAL)
add_dependencies(fdbserver rocksdb)
target_include_directories(fdbserver PRIVATE
${CMAKE_SOURCE_DIR}/bindings/c