Skip to content

Commit 06dbf73

Browse files
committed
We've already added ZLIB_LIBRARIES to LIBGIT2_LIBS so don't also add the z library (libgit2/libgit2#5079).
1 parent 040db8a commit 06dbf73

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/CMakeLists.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -327,12 +327,6 @@ IF(NOT USE_BUNDLED_ZLIB)
327327
IF(ZLIB_FOUND)
328328
LIST(APPEND LIBGIT2_SYSTEM_INCLUDES ${ZLIB_INCLUDE_DIRS})
329329
LIST(APPEND LIBGIT2_LIBS ${ZLIB_LIBRARIES})
330-
IF(APPLE OR CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
331-
LIST(APPEND LIBGIT2_LIBS "z")
332-
LIST(APPEND LIBGIT2_PC_LIBS "-lz")
333-
ELSE()
334-
LIST(APPEND LIBGIT2_PC_REQUIRES "zlib")
335-
ENDIF()
336330
ADD_FEATURE_INFO(zlib ON "using system zlib")
337331
ELSE()
338332
MESSAGE(STATUS "zlib was not found; using bundled 3rd-party sources." )

0 commit comments

Comments
 (0)