change more
This commit is contained in:
parent
e4a3d1dfcf
commit
4d526ed0cd
|
@ -1,18 +1,5 @@
|
||||||
|
|
||||||
# rocksdb
|
# rocksdb
|
||||||
|
|
||||||
find_library(ROCKSDB_LIB NAMES rocksdb)
|
|
||||||
find_path(ROCKSDB_INCLUDE_DIR NAMES rocksdb/db.h)
|
|
||||||
|
|
||||||
if (ROCKSDB_LIB AND ROCKSDB_INCLUDE_DIR)
|
|
||||||
set(ROCKSDB_FOUND TRUE)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(ROCKSDB_FOUND)
|
|
||||||
message(STATUS "Found rocksdb")
|
|
||||||
else()
|
|
||||||
message(STATUS "Building rocksdb from source")
|
|
||||||
|
|
||||||
ExternalProject_Add(rocksdb
|
ExternalProject_Add(rocksdb
|
||||||
GIT_REPOSITORY https://github.com/facebook/rocksdb.git
|
GIT_REPOSITORY https://github.com/facebook/rocksdb.git
|
||||||
GIT_TAG v8.1.1
|
GIT_TAG v8.1.1
|
||||||
|
@ -23,6 +10,3 @@ else()
|
||||||
INSTALL_COMMAND ""
|
INSTALL_COMMAND ""
|
||||||
TEST_COMMAND ""
|
TEST_COMMAND ""
|
||||||
)
|
)
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -226,7 +226,6 @@ if(${BUILD_WITH_LEVELDB})
|
||||||
endif(${BUILD_WITH_LEVELDB})
|
endif(${BUILD_WITH_LEVELDB})
|
||||||
|
|
||||||
# rocksdb
|
# rocksdb
|
||||||
if (FALSE)
|
|
||||||
# To support rocksdb build on ubuntu: sudo apt-get install libgflags-dev
|
# To support rocksdb build on ubuntu: sudo apt-get install libgflags-dev
|
||||||
if(${BUILD_WITH_ROCKSDB})
|
if(${BUILD_WITH_ROCKSDB})
|
||||||
if(${TD_LINUX})
|
if(${TD_LINUX})
|
||||||
|
@ -270,14 +269,13 @@ if(${BUILD_WITH_ROCKSDB})
|
||||||
option(WITH_TOOLS "" OFF)
|
option(WITH_TOOLS "" OFF)
|
||||||
option(WITH_LIBURING "" OFF)
|
option(WITH_LIBURING "" OFF)
|
||||||
|
|
||||||
option(ROCKSDB_BUILD_SHARED "Build shared versions of the RocksDB libraries" OFF)
|
option(ROCKSDB_BUILD_SHARED "Build shared versions of the RocksDB libraries" ON)
|
||||||
add_subdirectory(rocksdb EXCLUDE_FROM_ALL)
|
add_subdirectory(rocksdb EXCLUDE_FROM_ALL)
|
||||||
target_include_directories(
|
target_include_directories(
|
||||||
rocksdb
|
rocksdb
|
||||||
PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/rocksdb/include>
|
PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/rocksdb/include>
|
||||||
)
|
)
|
||||||
endif(${BUILD_WITH_ROCKSDB})
|
endif(${BUILD_WITH_ROCKSDB})
|
||||||
endif()
|
|
||||||
|
|
||||||
# lucene
|
# lucene
|
||||||
# To support build on ubuntu: sudo apt-get install libboost-all-dev
|
# To support build on ubuntu: sudo apt-get install libboost-all-dev
|
||||||
|
|
|
@ -101,7 +101,7 @@ target_link_libraries(
|
||||||
|
|
||||||
# PUBLIC bdb
|
# PUBLIC bdb
|
||||||
# PUBLIC scalar
|
# PUBLIC scalar
|
||||||
PUBLIC rocksdb
|
PUBLIC rocksdb-shared
|
||||||
PUBLIC transport
|
PUBLIC transport
|
||||||
PUBLIC stream
|
PUBLIC stream
|
||||||
PUBLIC index
|
PUBLIC index
|
||||||
|
|
|
@ -9,7 +9,7 @@ target_include_directories(
|
||||||
if(${BUILD_WITH_ROCKSDB})
|
if(${BUILD_WITH_ROCKSDB})
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
stream
|
stream
|
||||||
PUBLIC rocksdb tdb
|
PUBLIC rocksdb-shared tdb
|
||||||
PRIVATE os util transport qcom executor wal
|
PRIVATE os util transport qcom executor wal
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue