Skip to content

Commit

Permalink
cmake: Only require zlib if not building with libdeflate
Browse files Browse the repository at this point in the history
  • Loading branch information
stuarteberg committed Dec 23, 2024
1 parent b921d7a commit 65404a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ else()
FIND_PACKAGE(JPEG REQUIRED)
endif()

FIND_PACKAGE(ZLIB REQUIRED)
FIND_PACKAGE(PNG REQUIRED)
FIND_PACKAGE(CURL REQUIRED)
FIND_LIBRARY(ZEROMQ_LIBRARIES zmq)
Expand Down Expand Up @@ -237,6 +236,7 @@ set (support_LIBS ${JSON_LIBRARIES} ${boost_LIBS} ${ZEROMQ_LIBRARIES} ${PNG_LIBR
if (WITH_LIBDEFLATE)
set (support_LIBS ${support_LIBS} ${LIBDEFLATE_LIBRARY})
else()
FIND_PACKAGE(ZLIB REQUIRED)
set (support_LIBS ${support_LIBS} ${ZLIB_LIBRARIES})
endif()

Expand Down

0 comments on commit 65404a3

Please sign in to comment.