Added support for setting MZ_FILE32_API from cmake.

This commit is contained in:
Nathan Moinvaziri 2020-06-06 18:36:00 -07:00
parent fc837362fe
commit 4fc98c6365
2 changed files with 7 additions and 0 deletions

View File

@ -25,8 +25,11 @@ option(MZ_BUILD_TEST "Builds minizip test executable" OFF)
option(MZ_BUILD_UNIT_TEST "Builds minizip unit test project" OFF)
option(MZ_BUILD_FUZZ_TEST "Builds minizip fuzzer executables" OFF)
option(MZ_CODE_COVERAGE "Builds with code coverage flags" OFF)
option(MZ_FILE32_API "Builds using posix 32-bit file api" OFF)
set(MZ_PROJECT_SUFFIX "" CACHE STRING "Project name suffix for package managers")
mark_as_advanced(MZ_FILE32_API MZ_PROJECT_SUFFIX)
if(POLICY CMP0074)
cmake_policy(SET CMP0074 OLD)
endif()
@ -378,6 +381,9 @@ endif()
if(MZ_SIGNING)
list(APPEND MINIZIP_DEF -DMZ_ZIP_SIGNING)
endif()
if(MZ_FILE32_API)
list(APPEND MINIZIP_DEF -DMZ_FILE32_API)
endif()
# Include PKCRYPT
if(MZ_PKCRYPT)

View File

@ -88,6 +88,7 @@ cmake --build .
| MZ_BUILD_FUZZ_TEST | Builds minizip fuzz executables | OFF |
| MZ_CODE_COVERAGE | Build with code coverage flags | OFF |
| MZ_PROJECT_SUFFIX | Project name suffix for packaging | |
| MZ_FILE32_API | Builds using posix 32-bit file api | OFF |
## Contents