diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-10-04 19:01:33 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-10-04 19:01:56 +0100 |
commit | 180bcde866cb74fe1e86c16e1357a2e4eae14ee5 (patch) | |
tree | 1b8bb98b7792b935e0339ab6d7f9a175423c1f8e /CMakeLists.txt | |
parent | db_bdb: fix hard fork keys (diff) | |
download | monero-180bcde866cb74fe1e86c16e1357a2e4eae14ee5.tar.xz |
build: default to Berkeley DB for 32 bit and ARM
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index f9e21604f..aef7a52e6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -216,8 +216,17 @@ if (DATABASE STREQUAL "lmdb") endif() endif() endif() + + if (BERKELEY_DB AND (ARCH_WIDTH STREQUAL "32" OR ARM6 OR ARM7)) + message(STATUS "Using Berkeley DB as default DB type") + add_definitions("-DDEFAULT_DB_TYPE=\"berkeley\"") + else() + message(STATUS "Using LMDB as default DB type") + add_definitions("-DDEFAULT_DB_TYPE=\"lmdb\"") + endif() elseif (DATABASE STREQUAL "memory") set(BLOCKCHAIN_DB DB_MEMORY) + add_definitions("-DDEFAULT_DB_TYPE=\"memory\"") else() die("Invalid database type: ${DATABASE}") endif() |