aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_db/CMakeLists.txt
diff options
context:
space:
mode:
authorThomas Winget <tewinget@gmail.com>2015-04-07 14:27:37 -0400
committerThomas Winget <tewinget@gmail.com>2015-04-07 15:02:20 -0400
commit9519526224e02618313f5dff23de62923de55984 (patch)
tree8ed0f8116451bbecc3d00917722aecfe89b7e7c0 /src/blockchain_db/CMakeLists.txt
parentMerge upstream into blockchain (diff)
downloadmonero-9519526224e02618313f5dff23de62923de55984.tar.xz
Only compile BerkeleyDB as an option in non-static
Diffstat (limited to 'src/blockchain_db/CMakeLists.txt')
-rw-r--r--src/blockchain_db/CMakeLists.txt13
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})