SDL_ttf: Copy PrivateSdlFunctions.cmake from SDL_image

From 1ebb34daf683523da1458dfc5b8fdf021865db84 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Sun, 23 Nov 2025 14:47:56 +0100
Subject: [PATCH] Copy PrivateSdlFunctions.cmake from SDL_image

---
 cmake/PrivateSdlFunctions.cmake | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/cmake/PrivateSdlFunctions.cmake b/cmake/PrivateSdlFunctions.cmake
index e6965fae..0312faa1 100644
--- a/cmake/PrivateSdlFunctions.cmake
+++ b/cmake/PrivateSdlFunctions.cmake
@@ -323,9 +323,9 @@ endfunction()
 
 function(sdl_no_deprecated_errors TARGET)
     check_c_compiler_flag(-Wno-error=deprecated-declarations HAVE_WNO_ERROR_DEPRECATED_DECLARATIONS)
-        if(HAVE_WNO_ERROR_DEPRECATED_DECLARATIONS)
-    target_compile_options(${TARGET} PRIVATE "-Wno-error=deprecated-declarations")
-endif()
+    if(HAVE_WNO_ERROR_DEPRECATED_DECLARATIONS)
+        target_compile_options(${TARGET} PRIVATE "-Wno-error=deprecated-declarations")
+    endif()
 endfunction()
 
 function(sdl_get_git_revision_hash VARNAME)