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