Windows: fix zstd

Cannot properly check for library functions of a library
that has yet to be compiled.
So fix libarchive quick & dirty.
This commit is contained in:
Floris Bos 2023-10-18 21:53:43 +02:00
parent 16e8a83e5e
commit a29d2c9d7c

View file

@ -633,7 +633,8 @@ IF(ZSTD_FOUND)
CMAKE_PUSH_CHECK_STATE()
SET(CMAKE_REQUIRED_LIBRARIES ${ZSTD_LIBRARY})
SET(CMAKE_REQUIRED_INCLUDES ${ZSTD_INCLUDE_DIR})
CHECK_FUNCTION_EXISTS(ZSTD_decompressStream HAVE_LIBZSTD)
#CHECK_FUNCTION_EXISTS(ZSTD_decompressStream HAVE_LIBZSTD)
set(HAVE_LIBZSTD 1 CACHE INTERNAL "libzstd")
CHECK_FUNCTION_EXISTS(ZSTD_compressStream HAVE_LIBZSTD_COMPRESSOR)
#
# TODO: test for static library.