From e8c7ed6b490c7eeb7a0922e11cea028a9bb02fb9 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Wed, 18 Feb 2026 21:01:09 +0100
Subject: [PATCH] cmake: set ZLIB_FOUND variable after configuring zlib
(cherry picked from commit e3e722e3b1a0c1fa9c674bd5cac7069122a2dba9)
---
CMakeLists.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1fa951e6..cb279997 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -469,6 +469,7 @@ if(SDLIMAGE_ZLIB)
if(NOT TARGET ZLIB::zlibstatic)
add_library(ZLIB::zlibstatic ALIAS ${ZLIB_LIBRARY})
endif()
+ set(ZLIB_FOUND TRUE)
# ZLIB_LIBRARIES variable is used by vendored libpng
set(ZLIB_LIBRARIES "${ZLIB_LIBRARY}")
# ZLIB_INCLUDE_DIRS variable is used by vendored libpng