1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

move linking to system frameworks to appropriate Find* scripts

This commit is contained in:
Andrey Filipenkov
2022-08-15 10:43:06 +03:00
parent 4452ddb404
commit 7631e7ef06
4 changed files with 37 additions and 18 deletions

View File

@@ -345,6 +345,24 @@ if(SDL2_FOUND)
if (APPLE_MACOS)
set_property(TARGET SDL2::SDL2 APPEND PROPERTY
INTERFACE_LINK_OPTIONS -framework Cocoa)
elseif (APPLE_IOS)
target_link_libraries(SDL2::SDL2 INTERFACE
"-framework AudioToolbox"
"-framework AVFoundation"
"-framework CoreAudio"
"-framework CoreBluetooth"
"-framework CoreFoundation"
"-framework CoreGraphics"
"-framework CoreMotion"
"-framework CoreVideo"
"-framework GameController"
"-framework IOKit"
"-framework Metal"
"-framework OpenGLES"
"-framework QuartzCore"
"-framework UIKit"
"-weak_framework CoreHaptics"
)
endif()
else()
# For threads, as mentioned Apple doesn't need this.