Only compile BerkeleyDB as an option in non-static

This commit is contained in:
Thomas Winget 2015-04-07 14:27:37 -04:00
parent 94cb295db4
commit 9519526224
No known key found for this signature in database
GPG key ID: 58131A160789E630
4 changed files with 41 additions and 17 deletions

View file

@ -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})