mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 16:05:21 +01:00
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:
parent
16e8a83e5e
commit
a29d2c9d7c
1 changed files with 2 additions and 1 deletions
|
@ -633,7 +633,8 @@ IF(ZSTD_FOUND)
|
||||||
CMAKE_PUSH_CHECK_STATE()
|
CMAKE_PUSH_CHECK_STATE()
|
||||||
SET(CMAKE_REQUIRED_LIBRARIES ${ZSTD_LIBRARY})
|
SET(CMAKE_REQUIRED_LIBRARIES ${ZSTD_LIBRARY})
|
||||||
SET(CMAKE_REQUIRED_INCLUDES ${ZSTD_INCLUDE_DIR})
|
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)
|
CHECK_FUNCTION_EXISTS(ZSTD_compressStream HAVE_LIBZSTD_COMPRESSOR)
|
||||||
#
|
#
|
||||||
# TODO: test for static library.
|
# TODO: test for static library.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue