Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
acelyc111 committed Dec 6, 2023
1 parent abf82e0 commit dcad21e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 104 deletions.
9 changes: 7 additions & 2 deletions cmake_modules/BaseFunctions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -327,13 +327,18 @@ function(dsn_setup_thirdparty_libs)
set(DEFAULT_THIRDPARTY_LIBS ${THRIFT_LIB} fmt::fmt CACHE STRING "default thirdparty libs" FORCE)

# rocksdb and dependent libs
find_package(snappy REQUIRED)
file(GLOB ROCKSDB_DEPENDS_MODULE_PATH ${THIRDPARTY_ROOT}/build/Source/rocksdb/cmake/modules)
if(NOT ROCKSDB_DEPENDS_MODULE_PATH)
message(WARNING "Cannot find RocksDB depends cmake modules path, might not find snappy, zstd, lz4")
endif()
list(APPEND CMAKE_MODULE_PATH "${ROCKSDB_DEPENDS_MODULE_PATH}")
find_package(Snappy REQUIRED)
find_package(zstd REQUIRED)
find_package(lz4 REQUIRED)
if(USE_JEMALLOC)
find_package(Jemalloc REQUIRED)
endif()
find_package(RocksDB REQUIRED)
find_package(RocksDB)

# libhdfs
find_package(JNI REQUIRED)
Expand Down
34 changes: 0 additions & 34 deletions cmake_modules/Findlz4.cmake

This file was deleted.

34 changes: 0 additions & 34 deletions cmake_modules/Findsnappy.cmake

This file was deleted.

34 changes: 0 additions & 34 deletions cmake_modules/Findzstd.cmake

This file was deleted.

0 comments on commit dcad21e

Please sign in to comment.