Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix MZ_FETCH_LIBS option for non-WIN32 systems
Using `cmake_dependent_option` overrides a previously set directory scope MZ_FETCH_LIBS variable. This means if a project sets MZ_FETCH_LIBS before adding minizip-ng as a subdirectory in order to force it to fetch zlib, it will set the variable to OFF, only use `find_library` and never fetch zlib on non-WIN32 systems. This is a regression from previous behaviour. Instead, revert back to using `option` as this obeys a directory scope MZ_FETCH_LIBS variable set by a parent directory, allowing said parent directory to control zlib version.
- Loading branch information