mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Build RocksDB by ExternalProject
This commit is contained in:
committed by
Nik Bougalis
parent
296469f5fe
commit
2aed24a552
16
Builds/CMake/rocks_thirdparty.inc
Normal file
16
Builds/CMake/rocks_thirdparty.inc
Normal file
@@ -0,0 +1,16 @@
|
||||
set (THIRDPARTY_LIBS "")
|
||||
if(WITH_SNAPPY)
|
||||
find_package(snappy REQUIRED)
|
||||
add_definitions(-DSNAPPY)
|
||||
include_directories(${SNAPPY_INCLUDE_DIR})
|
||||
list(APPEND THIRDPARTY_LIBS ${SNAPPY_LIBRARIES})
|
||||
endif()
|
||||
|
||||
if(WITH_LZ4)
|
||||
find_package(lz4 REQUIRED)
|
||||
add_definitions(-DLZ4)
|
||||
include_directories(${LZ4_INCLUDE_DIR})
|
||||
list(APPEND THIRDPARTY_LIBS ${LZ4_LIBRARIES})
|
||||
endif()
|
||||
|
||||
|
||||
4
Builds/CMake/rocksdb_build_version.cc.in
Normal file
4
Builds/CMake/rocksdb_build_version.cc.in
Normal file
@@ -0,0 +1,4 @@
|
||||
#include "build_version.h"
|
||||
const char* rocksdb_build_git_sha = "rocksdb_build_git_sha: N/A";
|
||||
const char* rocksdb_build_git_date = "rocksdb_build_git_date: N/A";
|
||||
const char* rocksdb_build_compile_date = "N/A";
|
||||
Reference in New Issue
Block a user