SDL: Don't use the system iconv on Apple mobile platforms (857b9)

From 857b9848d253b392962ae2e94ace97f21f289f54 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)
(cherry picked from commit 8eed915dfab11fd8055a45d24e943313cca249c9)
---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index d12530ea38fc..acb4c3599ed9 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)