From 2f873636c79111662334054f59f7e6cf5a3541cd Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Sun, 24 Nov 2024 00:09:55 +0100 Subject: [PATCH] cmake: ios and tvos applications need to link to SDL2main library Backport of 52090046fef58d0f74ba0e1c91949297bd24e9b3 --- test/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 2bbaf53527..6388f9c0fb 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -99,6 +99,8 @@ elseif(PS2) dmakit ps2_drivers ) +elseif(IOS OR TVOS) + link_libraries(SDL2::SDL2main SDL2::SDL2test SDL2::SDL2-static) else() link_libraries(SDL2::SDL2test SDL2::SDL2-static) endif()