Skip to content

Commit

Permalink
Merge pull request #284 from chaoticgd/zlib_windows_issue
Browse files Browse the repository at this point in the history
Make sure zlib gets linked statically
  • Loading branch information
chaoticgd authored Jan 7, 2025
2 parents a39d29d + 94143f9 commit 1dbb1ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thirdparty/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ set(ZLIB_FOUND TRUE)
set(ZLIB_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/thirdparty/zlib ${CMAKE_BINARY_DIR}/thirdparty/zlib)
# ZLIB_INCLUDE_DIRS is used by genout.cmake.in from libpng.
set(ZLIB_INCLUDE_DIRS ${CMAKE_SOURCE_DIR}/thirdparty/zlib ${CMAKE_BINARY_DIR}/thirdparty/zlib)
add_library(ZLIB::ZLIB ALIAS zlib)
add_library(ZLIB::ZLIB ALIAS zlibstatic)
if(WIN32)
# ZLIB_LIBRARY is used by libzip and must be set at configuration time hence
# we copy the library file into a fixed location.
Expand Down

0 comments on commit 1dbb1ff

Please sign in to comment.