diff options
author | Riccardo Spagni <ric@spagni.net> | 2015-03-02 17:10:16 +0200 |
---|---|---|
committer | Thomas Winget <tewinget@gmail.com> | 2015-03-17 18:26:29 -0400 |
commit | 3b3da8648325615ba2893a7b85bda14cc6684838 (patch) | |
tree | 11d507e15316f52e89d2e58a78c88fa32d6bcbd2 /db_drivers/CMakeLists.txt | |
parent | removed findlmdb.cmake, no longer required (diff) | |
download | monero-3b3da8648325615ba2893a7b85bda14cc6684838.tar.xz |
moved 32-bit/64-bit detection into main CMakeLists
Diffstat (limited to 'db_drivers/CMakeLists.txt')
-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) |