From 8969c46cf96884c7304a01b8b7822c1936ab215e Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Sun, 14 Dec 2014 10:23:44 +0100 Subject: build unqlite with thread support --- common/CMakeLists.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'common') diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt index 3baf6b6..8e8af1f 100644 --- a/common/CMakeLists.txt +++ b/common/CMakeLists.txt @@ -3,6 +3,7 @@ generate_flatbuffers(commands/handshake commands/revisionupdate) if (STORAGE_unqlite) + add_definitions(-DUNQLITE_ENABLE_THREADS) set(storage_SRCS storage_unqlite.cpp unqlite/*c) else (STORAGE_KYOTO) set(storage_SRCS storage_lmdb.cpp) @@ -10,10 +11,10 @@ else (STORAGE_KYOTO) endif (STORAGE_KYOTO) set(command_SRCS - commands.cpp - console.cpp - storage_common.cpp - ${storage_SRCS}) + commands.cpp + console.cpp + storage_common.cpp + ${storage_SRCS}) add_library(${PROJECT_NAME} ${command_SRCS}) SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES LINKER_LANGUAGE CXX) -- cgit v1.2.3