From f3670277f7b843fdc4d79707aedf712148b874fa Mon Sep 17 00:00:00 2001 From: Mostyn Bramley-Moore Date: Fri, 13 Sep 2024 21:28:05 +0200 Subject: [PATCH] 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.. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a24e1dcfd..d683f70d9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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() -- 2.47.2