cmake: ios and tvos applications need to link to SDL2main library

Backport of 52090046fe
This commit is contained in:
Anonymous Maarten committed 2024-11-24 00:09:55 +01:00
1 parent cb3e9578e3
commit 2f873636c7
1 file changed
+2
+2
View File
@@ -99,6 +99,8 @@ elseif(PS2)
dmakit dmakit
ps2_drivers ps2_drivers
) )
elseif(IOS OR TVOS)
link_libraries(SDL2::SDL2main SDL2::SDL2test SDL2::SDL2-static)
else() else()
link_libraries(SDL2::SDL2test SDL2::SDL2-static) link_libraries(SDL2::SDL2test SDL2::SDL2-static)
endif() endif()