diff options
Diffstat (limited to '')
-rw-r--r-- | db_drivers/CMakeLists.txt | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/db_drivers/CMakeLists.txt b/db_drivers/CMakeLists.txt index db386c11f..c96f623d1 100644 --- a/db_drivers/CMakeLists.txt +++ b/db_drivers/CMakeLists.txt @@ -28,14 +28,8 @@ # We aren't even going to check the system for an installed LMDB driver, as it is too # critical a consensus component to rely on dynamically linked libraries -if(CMAKE_SIZEOF_VOID_P EQUAL "8") - message(STATUS "Using 64-bit LMDB from source tree") - add_subdirectory(liblmdb) - set(LMDB_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/liblmdb" PARENT_SCOPE) -else() - message(STATUS "Using 32-bit LMDB from source tree") - add_subdirectory(liblmdb-vl32) - set(LMDB_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/liblmdb-vl32" PARENT_SCOPE) -endif() +message(STATUS "Using ${ARCH_WIDTH}-bit LMDB from source tree") +add_subdirectory(liblmdb${ARCH_WIDTH}) +set(LMDB_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/liblmdb${ARCH_WIDTH}" PARENT_SCOPE) set(LMDB_LIBRARY "lmdb" PARENT_SCOPE) |