Fix check library zstd exists

No symbol zstd_compress in the ZSTD library, therefore the MACRO HAVE_ZSTD wil always not be defined.Change it to a symbol exist in ZSTD library.
This commit is contained in:
yshihao 2023-05-18 17:03:10 +08:00
parent 068d5ee1a3
commit 175e5406c6

View File

@ -40,7 +40,7 @@ check_include_file("unistd.h" HAVE_UNISTD_H)
include(CheckLibraryExists)
check_library_exists(crc32c crc32c_value "" HAVE_CRC32C)
check_library_exists(snappy snappy_compress "" HAVE_SNAPPY)
check_library_exists(zstd zstd_compress "" HAVE_ZSTD)
check_library_exists(zstd ZSTD_compress "" HAVE_ZSTD)
check_library_exists(tcmalloc malloc "" HAVE_TCMALLOC)
include(CheckCXXSymbolExists)