Skip to content

Commit

Permalink
*Set Sqlite for Windows and LMDB for Linux
Browse files Browse the repository at this point in the history
*Boost req libs changed to 1.65 for U18.04
  • Loading branch information
4egod committed May 18, 2018
1 parent 773750e commit 0d8604c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,13 @@ set(CMAKE_C_STANDARD 11)
# message(STATUS "Bitsumd profile: According to cmake, sizeof(void *) == " ${CMAKE_SIZEOF_VOID_P})
option(USE_INSTRUMENTATION "For testing - builds with address sanitizer instrument" OFF)
option(WITH_THREAD_SANITIZER "For testing - builds with thread sanitizer instrument, USE_INSTRUMENTATION must be also set" OFF)
option(USE_SSL "Builds with support of https between walletd and bytecoind" OFF)
option(USE_SSL "Builds with support of https between wallet-rpc and bitsumd" OFF)
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
option(USE_SQLITE "Builds with SQLite instead of LMDB. 4x slower, but works on 32-bit and mobile platforms" ON)
if(WIN32)
option(USE_SQLITE "Builds with SQLite instead of LMDB. 4x slower, but works on 32-bit and mobile platforms" ON)
else()
option(USE_SQLITE "Builds with SQLite instead of LMDB. 4x slower, but works on 32-bit and mobile platforms" OFF)
endif()
set(OPENSSL_ROOT ../openssl)
else()
option(USE_SQLITE "Builds with sqlite instead of LMDB. 4x slower, but works on 32-bit and mobile platforms" ON)
Expand Down Expand Up @@ -163,7 +167,7 @@ if(WIN32)
else()
set(BOOST_ROOT ../boost)
set(Boost_USE_MULTITHREADED OFF) # all boost libraries are multithreaded since some version
find_package(Boost 1.67 REQUIRED COMPONENTS system)
find_package(Boost 1.65 REQUIRED COMPONENTS system)
include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
set(Boost_LIBRARIES "${Boost_LIBRARIES}")
if(APPLE)
Expand Down

0 comments on commit 0d8604c

Please sign in to comment.