Commit 606d2ea87fc37755acfc32d23f302fa3afbe8968

pionere 2022-01-09T17:00:41

bugfix for "add 'Misc' subsystem"

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b8e2278..e9689ac 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1830,10 +1830,13 @@ elseif(APPLE)
     message_error("SDL_FILE must be enabled to build on MacOS X")
   endif()
 
+  if(IOS OR TVOS)
+    file(GLOB SDLMAIN_SOURCES ${SDL2_SOURCE_DIR}/src/main/uikit/*.c)
+  endif()
+
   if(SDL_MISC)
     if(IOS OR TVOS)
       file(GLOB MISC_SOURCES ${SDL2_SOURCE_DIR}/src/misc/ios/*.m)
-      file(GLOB SDLMAIN_SOURCES ${SDL2_SOURCE_DIR}/src/main/uikit/*.c)
     else()
       file(GLOB MISC_SOURCES ${SDL2_SOURCE_DIR}/src/misc/macosx/*.m)
     endif()