SDL_image: cmake: Correctly choose whether to enable or disable PNG saving

From b0765c1ff6efcb5579da38ac0edf50d170e9f558 Mon Sep 17 00:00:00 2001
From: Simon McVittie <[EMAIL REDACTED]>
Date: Mon, 23 May 2022 19:05:55 +0100
Subject: [PATCH] cmake: Correctly choose whether to enable or disable PNG
 saving

This wasn't updated when the SAVE_PNG macro was renamed to
SDL_IMAGE_SAVE_PNG.

Fixes: 3af38ea "Fixed bug #235: add options to disable saving png/jpg images"
Signed-off-by: Simon McVittie <smcv@collabora.com>
---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6d24b10..06ff6d3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -463,7 +463,7 @@ endif()
 if(SDL2IMAGE_PNG)
     target_compile_definitions(SDL2_image PRIVATE
         LOAD_PNG
-        SAVE_PNG=$<BOOL:${SDL2IMAGE_PNG_SAVE}>
+        SDL_IMAGE_SAVE_PNG=$<BOOL:${SDL2IMAGE_PNG_SAVE}>
     )
     if(NOT SDL2IMAGE_BACKEND_STB AND NOT SDL2IMAGE_BACKEND_WIC AND NOT SDL2IMAGE_BACKEND_IMAGEIO)
         set(HAVE_LD_VERSION_SCRIPT OFF CACHE BOOL "" FORCE)