Skip to content

Commit

Permalink
protobuf: fix zlib build
Browse files Browse the repository at this point in the history
  • Loading branch information
Chilledheart committed Sep 14, 2024
1 parent b712324 commit 292441d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3441,11 +3441,13 @@ endif()
if (USE_SYSTEM_ZLIB)
message(STATUS "Compiling with system zlib")
list(APPEND YASS_APP_FEATURES "system zlib")
set(ZLIB_LIBRARIES PkgConfig::ZLIB)
set(SUPPORT_LIBS PkgConfig::ZLIB ${SUPPORT_LIBS})
elseif(USE_ZLIB)
message(STATUS "Compiling with bundled zlib")
add_subdirectory(third_party/zlib EXCLUDE_FROM_ALL)
list(APPEND YASS_APP_FEATURES "zlib")
set(ZLIB_LIBRARIES zlib)
set(SUPPORT_LIBS zlib ${SUPPORT_LIBS})
endif()

Expand Down

0 comments on commit 292441d

Please sign in to comment.