Skip to content

Commit

Permalink
cmake put_only
Browse files Browse the repository at this point in the history
  • Loading branch information
ban-nobuhiro committed Jun 14, 2023
1 parent 38b3b53 commit ee56b07
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ endif()
# TODO: default-value LEVELDB -> ROCKSDB
set(RECOVERY_SORTER_KVSLIB LEVELDB CACHE STRING "using eKVS library at recovery process")
string(TOUPPER $CACHE{RECOVERY_SORTER_KVSLIB} RECOVERY_SORTER_KVSLIB_UPPERCASE)
# TODO: default-value OFF -> ON
option(RECOVERY_SORTER_PUT_ONLY "using put-only method at recovery process (faster)" OFF)

# set(ENGINE "engine")

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ available options:
* `-DINSTALL_EXAMPLES=ON` - install example applications
* `-DFORCE_INSTALL_RPATH=ON` - automatically configure `INSTALL_RPATH` for non-default library paths
* `-DRECOVERY_SORTER_KVSLIB=<library>` - using eKVS library at recovery process. (`LEVELDB` or `ROCKSDB`, case-insensitive)
* `-DRECOVERY_SORTER_PUT_ONLY=ON` - using put-only method at recovery process (faster)
* for debugging only
* `-DENABLE_SANITIZER=OFF` - disable sanitizers (requires `-DCMAKE_BUILD_TYPE=Debug`)
* `-DENABLE_UB_SANITIZER=ON` - enable undefined behavior sanitizer (requires `-DENABLE_SANITIZER=ON`)
Expand Down
3 changes: 3 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ if(${RECOVERY_SORTER_KVSLIB_UPPERCASE} STREQUAL "ROCKSDB")
else()
set(sort_lib leveldb)
endif()
if(RECOVERY_SORTER_PUT_ONLY)
target_compile_options(${package_name} PRIVATE -DSORT_METHOD_PUT_ONLY)
endif()

target_link_libraries(${package_name}
PUBLIC limestone-api
Expand Down

0 comments on commit ee56b07

Please sign in to comment.