Parcourir la source

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

Backport of 52090046fef58d0f74ba0e1c91949297bd24e9b3
Anonymous Maarten il y a 4 mois
Parent
commit
2f873636c7
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      test/CMakeLists.txt

+ 2 - 0
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()