SDL_image: cmake: cannot detect deprecated apple-clang link options (they are not fatal) (87242)

From 8724244d99276f592a9b3de32c35dedfeced15a4 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Thu, 8 Jan 2026 21:37:02 +0100
Subject: [PATCH] cmake: cannot detect deprecated apple-clang link options
 (they are not fatal)

So skip these

(cherry picked from commit edf8c80e1b876d6003c19d8ae8b40ff71350647b)
---
 cmake/PrivateSdlFunctions.cmake | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/cmake/PrivateSdlFunctions.cmake b/cmake/PrivateSdlFunctions.cmake
index 44ceeb57..583c0a3d 100644
--- a/cmake/PrivateSdlFunctions.cmake
+++ b/cmake/PrivateSdlFunctions.cmake
@@ -289,10 +289,6 @@ endfunction()
 function(sdl_target_link_options_no_undefined TARGET)
     if(NOT MSVC AND NOT CMAKE_SYSTEM_NAME MATCHES ".*OpenBSD.*")
         if(CMAKE_C_COMPILER_ID MATCHES "AppleClang")
-            sdl_check_linker_flag("-Wl,-undefined,error" HAVE_WL_UNDEFINED_ERROR)
-            if(HAVE_WL_UNDEFINED_ERROR)
-                target_link_options(${TARGET} PRIVATE "-Wl,-undefined,error")
-            endif()
         else()
             sdl_check_linker_flag("-Wl,--no-undefined" HAVE_WL_NO_UNDEFINED)
             if(HAVE_WL_NO_UNDEFINED AND NOT ((CMAKE_C_COMPILER_ID MATCHES "Clang") AND WIN32))