From: Mostyn Bramley-Moore Date: Fri, 13 Sep 2024 19:28:05 +0000 (+0200) Subject: cmake: do not require zlib (#2327) X-Git-Tag: v3.7.5~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3670277f7b843fdc4d79707aedf712148b874fa;p=thirdparty%2Flibarchive.git 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.. --- 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()