diff options
author | warptangent <warptangent@inbox.com> | 2015-01-25 21:36:09 -0800 |
---|---|---|
committer | warptangent <warptangent@inbox.com> | 2015-02-02 11:53:09 -0800 |
commit | 84fe5fbd65100a731608471ef0a4c462ea8f5626 (patch) | |
tree | 70c9a0f292631feb8145aa97eff38f564087dc32 /src/blockchain_converter | |
parent | Merge PR 25 into blockchain (diff) | |
download | monero-84fe5fbd65100a731608471ef0a4c462ea8f5626.tar.xz |
Add compile-time support for both db implementations: in-memory and LMDB
Usage:
default is lmdb for blockchain branch:
$ make release
same as:
$ DATABASE=lmdb make release
for original in-memory implementation:
$ DATABASE=memory make release
Diffstat (limited to 'src/blockchain_converter')
-rw-r--r-- | src/blockchain_converter/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/blockchain_converter/CMakeLists.txt b/src/blockchain_converter/CMakeLists.txt index 713ba18ef..fa2c7bafc 100644 --- a/src/blockchain_converter/CMakeLists.txt +++ b/src/blockchain_converter/CMakeLists.txt @@ -35,6 +35,7 @@ set(blockchain_converter_private_headers) bitmonero_private_headers(blockchain_converter ${blockchain_converter_private_headers}) +if (BLOCKCHAIN_DB STREQUAL DB_LMDB) bitmonero_add_executable(blockchain_converter ${blockchain_converter_sources} ${blockchain_converter_private_headers}) @@ -49,3 +50,4 @@ add_dependencies(blockchain_converter set_property(TARGET blockchain_converter PROPERTY OUTPUT_NAME "blockchain_converter") +endif () |