Skip to content

Commit

Permalink
cmake: do not find bzip2/lz4 for rocksdb
Browse files Browse the repository at this point in the history
Signed-off-by: runsisi <runsisi@zte.com.cn>
  • Loading branch information
runsisi committed Jan 16, 2018
1 parent aab2def commit f013414
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/kv/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,3 @@ add_library(kv STATIC $<TARGET_OBJECTS:kv_objs>)
target_include_directories(kv_objs SYSTEM BEFORE PUBLIC ${ROCKSDB_INCLUDE_DIR})
target_include_directories(kv SYSTEM BEFORE PUBLIC ${ROCKSDB_INCLUDE_DIR})
target_link_libraries(kv ${LEVELDB_LIBRARIES} ${ROCKSDB_LIBRARIES} ${ALLOC_LIBS} ${SNAPPY_LIBRARIES} ${ZLIB_LIBRARIES})

# rocksdb detects bzlib and lz4 in its Makefile, which forces us to do the same.
find_package(BZip2 QUIET)
if (BZIP2_FOUND)
target_link_libraries(kv ${BZIP2_LIBRARIES})
endif (BZIP2_FOUND)
find_package(LZ4 QUIET)
if (LZ4_FOUND)
target_link_libraries(kv ${LZ4_LIBRARY})
endif (LZ4_FOUND)

0 comments on commit f013414

Please sign in to comment.