]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
cmake: do not require zlib (#2327)
authorMostyn Bramley-Moore <mostyn@antipode.se>
Fri, 13 Sep 2024 19:28:05 +0000 (21:28 +0200)
committerGitHub <noreply@github.com>
Fri, 13 Sep 2024 19:28:05 +0000 (21:28 +0200)
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

index a24e1dcfdec59bd4ac46112060cce6365f2c3507..d683f70d9545e89b9f25d2e5c31774655869f052 100644 (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()