Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #8846 from nyanpasu64/fix-cmake-zlib
Fix Windows CMake builds with shared zlib
  • Loading branch information
leoetlino committed Oct 21, 2020
2 parents 96ce3e5 + 1a2b6ca commit 08f9ed0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Externals/libpng/CMakeLists.txt
Expand Up @@ -23,7 +23,7 @@ PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}
)

target_link_libraries(png PUBLIC z)
target_link_libraries(png PUBLIC ZLIB::ZLIB)

if(NOT MSVC)
target_compile_options(png
Expand Down
2 changes: 1 addition & 1 deletion Externals/minizip/CMakeLists.txt
Expand Up @@ -13,6 +13,6 @@ endif()
add_library(minizip STATIC ${SRCS})
target_include_directories(minizip PUBLIC .)

target_link_libraries(minizip PUBLIC z)
target_link_libraries(minizip PUBLIC ZLIB::ZLIB)

add_library(MiniZip::minizip ALIAS minizip)
2 changes: 1 addition & 1 deletion Source/Core/UpdaterCommon/CMakeLists.txt
Expand Up @@ -7,7 +7,7 @@ add_library(updatercommon
target_link_libraries(updatercommon PRIVATE
uicommon
mbedtls
z
ZLIB::ZLIB
ed25519
cpp-optparse
)

0 comments on commit 08f9ed0

Please sign in to comment.