From c2903f8b4e2be07b84c7cc68993ea080cf8a896b Mon Sep 17 00:00:00 2001 From: spycrab Date: Wed, 8 May 2019 20:57:34 +0200 Subject: [PATCH] Externals/libpng: Link against zlib --- Externals/libpng/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Externals/libpng/CMakeLists.txt b/Externals/libpng/CMakeLists.txt index 4396e4a34c..622e65b207 100644 --- a/Externals/libpng/CMakeLists.txt +++ b/Externals/libpng/CMakeLists.txt @@ -23,6 +23,8 @@ PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ) +target_link_libraries(png PUBLIC z) + if(NOT MSVC) target_compile_options(png PRIVATE