diff options
Diffstat (limited to 'common')
-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) |