Jelajahi Sumber

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

Anonymous Maarten 1 tahun lalu
induk
melakukan
52090046fe
1 mengubah file dengan 2 tambahan dan 0 penghapusan
  1. 2 0
      test/CMakeLists.txt

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