diff --git a/vendor/rocksdb/CMakeLists.txt b/vendor/rocksdb/CMakeLists.txt index 1b61365a7..5776d07af 100644 --- a/vendor/rocksdb/CMakeLists.txt +++ b/vendor/rocksdb/CMakeLists.txt @@ -13,6 +13,15 @@ if(NOT MX_USE_VENDORED_ROCKSDB) endif() find_package(zstd CONFIG REQUIRED QUIET HINTS "${MX_VENDOR_INSTALL_DIR}") + +find_path(ZSTD_INCLUDE_DIRS + NAMES zstd.h + HINTS "${MX_VENDOR_INSTALL_DIR}/${MX_INSTALL_INCLUDE_DIR}") + +find_library(ZSTD_LIBRARIES + NAMES zstd + HINTS "${MX_VENDOR_INSTALL_DIR}/${MX_INSTALL_LIB_DIR}") + find_package(gflags CONFIG REQUIRED QUIET HINTS "${MX_VENDOR_INSTALL_DIR}") set(src_dir "${CMAKE_CURRENT_LIST_DIR}/src")