From b49d6e9fd50fbbd1913a2b3edb8a746a6cd56de7 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Tue, 20 Jan 2026 17:48:59 +0000
Subject: [PATCH] SDLIMAGE_PNG_SAVE isn't dependent on libpng
We can use SDL's built-in PNG save support if libpng isn't available.
---
CMakeLists.txt | 3 ---
1 file changed, 3 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 04e2e8bf..9e751bff 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -909,9 +909,6 @@ if(SDLIMAGE_PNG)
else()
target_link_libraries(${sdl3_image_target_name} PRIVATE PNG::PNG)
endif()
- else()
- # Variable is used by test suite
- set(SDLIMAGE_PNG_SAVE OFF)
endif()
target_compile_definitions(${sdl3_image_target_name} PRIVATE