summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Seigo <aseigo@kde.org>2014-12-14 10:23:44 +0100
committerAaron Seigo <aseigo@kde.org>2014-12-14 10:23:44 +0100
commit8969c46cf96884c7304a01b8b7822c1936ab215e (patch)
treeaa33914d31b996818b3f748e6398073bebbc93f9
parent29c1f7072db7484c214a7f6056faad0ffd83c71f (diff)
downloadsink-8969c46cf96884c7304a01b8b7822c1936ab215e.tar.gz
sink-8969c46cf96884c7304a01b8b7822c1936ab215e.zip
build unqlite with thread support
-rw-r--r--common/CMakeLists.txt9
1 files changed, 5 insertions, 4 deletions
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
3 commands/revisionupdate) 3 commands/revisionupdate)
4 4
5if (STORAGE_unqlite) 5if (STORAGE_unqlite)
6 add_definitions(-DUNQLITE_ENABLE_THREADS)
6 set(storage_SRCS storage_unqlite.cpp unqlite/*c) 7 set(storage_SRCS storage_unqlite.cpp unqlite/*c)
7else (STORAGE_KYOTO) 8else (STORAGE_KYOTO)
8 set(storage_SRCS storage_lmdb.cpp) 9 set(storage_SRCS storage_lmdb.cpp)
@@ -10,10 +11,10 @@ else (STORAGE_KYOTO)
10endif (STORAGE_KYOTO) 11endif (STORAGE_KYOTO)
11 12
12set(command_SRCS 13set(command_SRCS
13 commands.cpp 14 commands.cpp
14 console.cpp 15 console.cpp
15 storage_common.cpp 16 storage_common.cpp
16 ${storage_SRCS}) 17 ${storage_SRCS})
17 18
18add_library(${PROJECT_NAME} ${command_SRCS}) 19add_library(${PROJECT_NAME} ${command_SRCS})
19SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES LINKER_LANGUAGE CXX) 20SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES LINKER_LANGUAGE CXX)