Fixed default option values depending on platform not working.

This commit is contained in:
Nathan Moinvaziri 2021-01-10 13:50:48 -08:00
parent 24c3223ec2
commit 14f45f97c2

View File

@ -16,14 +16,14 @@ option(MZ_ZLIB "Enables ZLIB compression" ON)
option(MZ_BZIP2 "Enables BZIP2 compression" ON)
option(MZ_LZMA "Enables LZMA & XZ compression" ON)
option(MZ_ZSTD "Enables ZSTD compression" ON)
option(MZ_LIBCOMP "Enables Apple compression" APPLE)
option(MZ_FETCH_LIBS "Enables fetching third-party libraries if not found" WIN32)
option(MZ_LIBCOMP "Enables Apple compression" ${APPLE})
option(MZ_FETCH_LIBS "Enables fetching third-party libraries if not found" ${WIN32})
option(MZ_FORCE_FETCH_LIBS "Enables fetching third-party libraries always" OFF)
# Encryption support options
option(MZ_PKCRYPT "Enables PKWARE traditional encryption" ON)
option(MZ_WZAES "Enables WinZIP AES encryption" ON)
option(MZ_OPENSSL "Enables OpenSSL for encryption" UNIX)
option(MZ_LIBBSD "Enable libbsd crypto random" UNIX)
option(MZ_OPENSSL "Enables OpenSSL for encryption" ${UNIX})
option(MZ_LIBBSD "Enable libbsd crypto random" ${UNIX})
option(MZ_SIGNING "Enables zip signing support" ON)
# Character conversion options
option(MZ_ICONV "Enables iconv for string encoding conversion" ON)