SDL: Don't use the system iconv on Apple mobile platforms (8eed9)

From 8eed915dfab11fd8055a45d24e943313cca249c9 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Thu, 1 Feb 2024 15:53:27 -0800
Subject: [PATCH] Don't use the system iconv on Apple mobile platforms

Fixes https://github.com/libsdl-org/SDL/issues/8964

(cherry picked from commit d6a48e4958e48e797c946ba231a6d025e636f77c)
---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4c192fdeb69c..53a5894f99be 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -241,7 +241,7 @@ endif()
 if(UNIX OR MINGW OR MSYS OR (USE_CLANG AND NOT WINDOWS) OR VITA OR PSP OR PS2 OR N3DS)
   set(OPT_DEF_LIBC ON)
 endif()
-if(WINDOWS)
+if(WINDOWS OR IOS OR TVOS)
   set(SDL_SYSTEM_ICONV_DEFAULT OFF)
 else()
   set(SDL_SYSTEM_ICONV_DEFAULT ON)