diff options
author | Aaron Seigo <aseigo@kde.org> | 2014-12-14 10:23:44 +0100 |
---|---|---|
committer | Aaron Seigo <aseigo@kde.org> | 2014-12-14 10:23:44 +0100 |
commit | 8969c46cf96884c7304a01b8b7822c1936ab215e (patch) | |
tree | aa33914d31b996818b3f748e6398073bebbc93f9 | |
parent | 29c1f7072db7484c214a7f6056faad0ffd83c71f (diff) | |
download | sink-8969c46cf96884c7304a01b8b7822c1936ab215e.tar.gz sink-8969c46cf96884c7304a01b8b7822c1936ab215e.zip |
build unqlite with thread support
-rw-r--r-- | common/CMakeLists.txt | 9 |
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 | ||
5 | if (STORAGE_unqlite) | 5 | if (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) |
7 | else (STORAGE_KYOTO) | 8 | else (STORAGE_KYOTO) |
8 | set(storage_SRCS storage_lmdb.cpp) | 9 | set(storage_SRCS storage_lmdb.cpp) |
@@ -10,10 +11,10 @@ else (STORAGE_KYOTO) | |||
10 | endif (STORAGE_KYOTO) | 11 | endif (STORAGE_KYOTO) |
11 | 12 | ||
12 | set(command_SRCS | 13 | set(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 | ||
18 | add_library(${PROJECT_NAME} ${command_SRCS}) | 19 | add_library(${PROJECT_NAME} ${command_SRCS}) |
19 | SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES LINKER_LANGUAGE CXX) | 20 | SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES LINKER_LANGUAGE CXX) |