From 127f515296651fee21c59be56c35212123d2778f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 2 Feb 2022 11:37:17 +0100 Subject: [PATCH] modules: add frameworks newly needed by SDL on macOS and iOS. --- modules/FindSDL2.cmake | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/modules/FindSDL2.cmake b/modules/FindSDL2.cmake index a8992a819..e603bddb0 100644 --- a/modules/FindSDL2.cmake +++ b/modules/FindSDL2.cmake @@ -178,21 +178,23 @@ endif() # building SDL statically using its CMake project, on iOS always. if(CORRADE_TARGET_APPLE AND SDL2_LIBRARY MATCHES "${CMAKE_STATIC_LIBRARY_SUFFIX}$") set(_SDL2_FRAMEWORKS + iconv # should be in the system, needed by iOS as well now AudioToolbox AVFoundation - Foundation) + CoreHaptics # needed since 2.0.18(?) on iOS and macOS + Foundation + Metal # needed since 2.0.8 on iOS, since 2.0.14 on macOS + GameController) # needed since 2.0.18(?) on macOS as well if(CORRADE_TARGET_IOS) list(APPEND _SDL2_FRAMEWORKS + CoreBluetooth # needed since 2.0.10 CoreGraphics CoreMotion Foundation - GameController - Metal # needed since 2.0.8 QuartzCore UIKit) else() list(APPEND _SDL2_FRAMEWORKS - iconv # should be in the system Carbon Cocoa CoreAudio