Browse Source

modules: add frameworks newly needed by SDL on macOS and iOS.

pull/539/head
Vladimír Vondruš 4 years ago
parent
commit
127f515296
  1. 10
      modules/FindSDL2.cmake

10
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

Loading…
Cancel
Save