diff --git a/cmake_modules/BaseFunctions.cmake b/cmake_modules/BaseFunctions.cmake index 0586029eb4d..16e3a2ffcdd 100644 --- a/cmake_modules/BaseFunctions.cmake +++ b/cmake_modules/BaseFunctions.cmake @@ -327,13 +327,13 @@ 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(RocksDB REQUIRED) find_package(snappy REQUIRED) find_package(zstd REQUIRED) find_package(lz4 REQUIRED) if(USE_JEMALLOC) find_package(Jemalloc REQUIRED) endif() + find_package(RocksDB REQUIRED) # libhdfs find_package(JNI REQUIRED) diff --git a/cmake_modules/Findsnappy.cmake b/cmake_modules/Findsnappy.cmake index 341445ccf54..51a1a5157d9 100644 --- a/cmake_modules/Findsnappy.cmake +++ b/cmake_modules/Findsnappy.cmake @@ -30,5 +30,5 @@ find_library(SNAPPY_STATIC_LIB libsnappy.a NO_SYSTEM_ENVIRONMENT_PATH) include(FindPackageHandleStandardArgs) -find_package_handle_standard_args(Snappy REQUIRED_VARS +find_package_handle_standard_args(snappy REQUIRED_VARS SNAPPY_STATIC_LIB SNAPPY_INCLUDE_DIR) diff --git a/cmake_modules/Findzstd.cmake b/cmake_modules/Findzstd.cmake index 258ada46569..dcbf969782e 100644 --- a/cmake_modules/Findzstd.cmake +++ b/cmake_modules/Findzstd.cmake @@ -30,5 +30,5 @@ find_library(ZSTD_STATIC_LIB libzstd.a NO_SYSTEM_ENVIRONMENT_PATH) include(FindPackageHandleStandardArgs) -find_package_handle_standard_args(Zstd REQUIRED_VARS +find_package_handle_standard_args(zstd REQUIRED_VARS ZSTD_STATIC_LIB ZSTD_INCLUDE_DIR)