diff options
author | Thomas Winget <tewinget@gmail.com> | 2015-04-07 14:27:37 -0400 |
---|---|---|
committer | Thomas Winget <tewinget@gmail.com> | 2015-04-07 15:02:20 -0400 |
commit | 9519526224e02618313f5dff23de62923de55984 (patch) | |
tree | 8ed0f8116451bbecc3d00917722aecfe89b7e7c0 /src/blockchain_db | |
parent | Merge upstream into blockchain (diff) | |
download | monero-9519526224e02618313f5dff23de62923de55984.tar.xz |
Only compile BerkeleyDB as an option in non-static
Diffstat (limited to 'src/blockchain_db')
-rw-r--r-- | src/blockchain_db/CMakeLists.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/blockchain_db/CMakeLists.txt b/src/blockchain_db/CMakeLists.txt index 70b4c876c..adbe804aa 100644 --- a/src/blockchain_db/CMakeLists.txt +++ b/src/blockchain_db/CMakeLists.txt @@ -29,16 +29,29 @@ set(blockchain_db_sources blockchain_db.cpp lmdb/db_lmdb.cpp + ) + +if (NOT STATIC) + set(blockchain_db_sources + ${blockchain_db_sources} berkeleydb/db_bdb.cpp ) +endif() + set(blockchain_db_headers) set(blockchain_db_private_headers blockchain_db.h lmdb/db_lmdb.h + ) + +if (NOT STATIC) + set(blockchain_db_private_headers + ${blockchain_db_private_headers} berkeleydb/db_bdb.h ) +endif() bitmonero_private_headers(blockchain_db ${crypto_private_headers}) |