--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -18,8 +18,7 @@
 ENDIF (MSVC)
 
 set(image_libs huginvigraimpex ${OPENEXR_LIBRARIES} ${JPEG_LIBRARIES} ${TIFF_LIBRARIES}
-    ${PNG_LIBRARIES})
-
+    ${PNG_LIBRARIES} ${ZLIB_LIBRARIES})
 
 add_subdirectory(foreign)
 add_subdirectory(hugin_base)