Skip to content

Commit

Permalink
Disable zlib on windows
Browse files Browse the repository at this point in the history
libcpr has had some weird linking problem with zlib for as long as I remember

but it seems that's a blocking problem on windows, rather than a warning like it on on Linux

This is a workaround until this issue is fixed:

libcpr/cpr#1085
  • Loading branch information
LunarWatcher committed Jul 21, 2024
1 parent 601ee42 commit 2420ade
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ set (CMAKE_CXX_STANDARD 20)

set(CMAKE_POSITION_INDEPENDENT_CODE ON)
set(SPDLOG_FMT_EXTERNAL ON CACHE STRING "" FORCE)
set(CURL_ZLIB ON CACHE STRING "" FORCE)
if (NOT WIN32)
set(CURL_ZLIB ON CACHE STRING "" FORCE)
endif()
set(CPR_BUILD_TESTS OFF CACHE STRING "" FORCE)

include(FetchContent)
Expand Down

0 comments on commit 2420ade

Please sign in to comment.