@@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8)
3
3
if (NOT QDB_VERSION)
4
4
5
5
# not included from the marvellous qdb
6
- project (leveldb)
6
+ project (leveldb)
7
7
set (CMAKE_DEBUG_POSTFIX "d" )
8
8
set (QDB_DEBUG_POSTFIX "d" )
9
9
set (QDB_RELEASE_POSTFIX "" )
@@ -35,14 +35,12 @@ if(NOT QDB_VERSION)
35
35
36
36
set (Boost_ADDITIONAL_VERSIONS)
37
37
38
- find_package (Boost COMPONENTS
38
+ find_package (Boost COMPONENTS
39
39
date_time
40
40
filesystem
41
41
system
42
42
REQUIRED)
43
43
44
- set (SNAPPY_LIBRARY "" )
45
-
46
44
string (REGEX MATCH "clang" CLANG ${CMAKE_CXX_COMPILER} )
47
45
48
46
if (CMAKE_COMPILER_IS_GNUCXX OR CLANG)
@@ -56,14 +54,11 @@ if(NOT QDB_VERSION)
56
54
set (Stdcpp_LIBRARY "" )
57
55
endif (CMAKE_COMPILER_IS_GNUCXX OR CLANG)
58
56
59
- else (NOT QDB_VERSION)
60
- set (SNAPPY_LIBRARY "snappy" )
61
57
endif (NOT QDB_VERSION)
62
58
63
59
include_directories (${Boost_INCLUDE_DIRS}
64
60
${CMAKE_CURRENT_SOURCE_DIR}
65
- include
66
- ${SNAPPY_INCLUDE_DIRS} )
61
+ include )
67
62
68
63
if (MSVC )
69
64
add_compile_options (
@@ -79,7 +74,6 @@ endif(MSVC)
79
74
80
75
add_definitions (
81
76
-DLEVELDB_ATOMIC_PRESENT
82
- -DSNAPPY
83
77
)
84
78
85
79
set (LEVEL_DB_FILES
@@ -188,7 +182,6 @@ endif(QDB_VERSION)
188
182
add_library (leveldb ${LEVEL_DB_FILES} )
189
183
190
184
target_link_libraries (leveldb
191
- ${SNAPPY_LIBRARY}
192
185
${Boost_LIBRARIES}
193
186
${Pthread_LIBRARY}
194
187
)
@@ -211,7 +204,7 @@ install(TARGETS leveldbutil
211
204
##################################### TESTS #######################################
212
205
# Every leveldb test file has to be compiled as an independant binary
213
206
# because of the test framework used by leveldb.
214
- add_library (leveldb_test_rt
207
+ add_library (leveldb_test_rt
215
208
util/testutil.h
216
209
util/testutil.cc
217
210
util/testharness.h
@@ -261,4 +254,4 @@ LEVELDB_ADD_TEST(db_bench db/db_bench.cc)
261
254
LEVELDB_ADD_TEST(version_set db/version_set_test.cc)
262
255
LEVELDB_ADD_TEST(filter_block table/filter_block_test.cc)
263
256
LEVELDB_ADD_TEST(bloom util/bloom_test.cc)
264
- LEVELDB_ADD_TEST(hash util/hash_test.cc)
257
+ LEVELDB_ADD_TEST(hash util/hash_test.cc)
0 commit comments