cmake: do not require zlib (#2327)

Followup to #2318 which accidentally made zlib required.

Tested locally by increasing the version in CMakeLists.txt to 1.4.1
(which does not exist yet), and confirming that the build reports that a
suitable version of zlib was not found, while the build continued..
This commit is contained in:
Mostyn Bramley-Moore authored and GitHub committed 2024-09-13 21:28:05 +02:00
1 parent 3f1b5340d9
commit f3670277f7
1 file changed
+1 -1
+1 -1
View File
@@ -462,7 +462,7 @@ IF(ENABLE_ZLIB)
# Require zlib >= 1.2.1, see: https://github.com/libarchive/libarchive/issues/615
# zlib 1.2.0 should also work, but it is difficult to test for. Let's require
# zlib >= 1.2.1 for consistency with the autoconf build.
FIND_PACKAGE(ZLIB 1.2.1 REQUIRED)
FIND_PACKAGE(ZLIB 1.2.1)
ELSE()
SET(ZLIB_FOUND FALSE) # Override cached value
ENDIF()