Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions cmake/external_dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
if(PLATFORM_ANDROID AND ANDROID_BUILD_ZLIB)
set(BUILD_ZLIB 1)
message(STATUS " Building Zlib as part of AWS SDK")
elseif(NOT PLATFORM_WINDOWS AND NOT PLATFORM_CUSTOM)
#If zlib is required either by openssl and curl in their linking chain, we should find it.
# If ENABLE_ZLIB_REQUEST_COMPRESSION is OFF, zlib check is skipped entirely
elseif(NOT PLATFORM_WINDOWS AND NOT PLATFORM_CUSTOM AND
NOT ENABLE_ZLIB_REQUEST_COMPRESSION STREQUAL "OFF")
# If zlib is required either by openssl and curl in their linking chain, we should find it.
include(FindZLIB)
if(NOT ZLIB_FOUND)
message(FATAL_ERROR "Could not find zlib")
Expand Down