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