Skip to content

Commit

Permalink
libzip: enable zstd
Browse files Browse the repository at this point in the history
  • Loading branch information
scribam authored and flyinghead committed May 31, 2024
1 parent 9089636 commit 112e05e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -619,14 +619,18 @@ if(NOT MINIUPNP_FOUND)
endif()

if(NOT LIBZIP_FOUND OR NINTENDO_SWITCH)
cmake_policy(SET CMP0026 OLD)
set(zstd_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/core/deps/libchdr/deps/zstd-1.5.6/lib")
get_target_property(zstd_STATIC_LIBRARY libzstd_static LOCATION)

option(ENABLE_COMMONCRYPTO "Enable use of CommonCrypto" OFF)
option(ENABLE_GNUTLS "Enable use of GnuTLS" OFF)
option(ENABLE_MBEDTLS "Enable use of mbed TLS" OFF)
option(ENABLE_OPENSSL "Enable use of OpenSSL" OFF)
option(ENABLE_WINDOWS_CRYPTO "Enable use of Windows cryptography libraries" OFF)
option(ENABLE_BZIP2 "Enable use of BZip2" OFF)
option(ENABLE_LZMA "Enable use of LZMA" OFF)
option(ENABLE_ZSTD "Enable use of Zstandard" OFF)
option(ENABLE_ZSTD "Enable use of Zstandard" ON)
option(BUILD_TOOLS "Build tools in the src directory (zipcmp, zipmerge, ziptool)" OFF)
option(BUILD_REGRESS "Build regression tests" OFF)
option(BUILD_EXAMPLES "Build examples" OFF)
Expand Down

0 comments on commit 112e05e

Please sign in to comment.