From 52090046fef58d0f74ba0e1c91949297bd24e9b3 Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Wed, 14 Aug 2024 11:58:35 +0200 Subject: [PATCH] cmake: ios and tvos applications need to link to SDL2main library --- test/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index b1249dbf6b..0d00763c89 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -241,6 +241,8 @@ elseif(PS2) dmakit ps2_drivers ) +elseif(IOS OR TVOS) + sdltest_link_librararies(SDL2::SDL2main SDL2::SDL2test SDL2::SDL2-static) else() sdltest_link_librararies(SDL2::SDL2test SDL2::SDL2-static) endif()