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. # building SDL statically using its CMake project, on iOS always.
if(CORRADE_TARGET_APPLE AND SDL2_LIBRARY MATCHES "${CMAKE_STATIC_LIBRARY_SUFFIX}$") if(CORRADE_TARGET_APPLE AND SDL2_LIBRARY MATCHES "${CMAKE_STATIC_LIBRARY_SUFFIX}$")
set(_SDL2_FRAMEWORKS set(_SDL2_FRAMEWORKS
iconv # should be in the system, needed by iOS as well now
AudioToolbox AudioToolbox
AVFoundation 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) if(CORRADE_TARGET_IOS)
list(APPEND _SDL2_FRAMEWORKS list(APPEND _SDL2_FRAMEWORKS
CoreBluetooth # needed since 2.0.10
CoreGraphics CoreGraphics
CoreMotion CoreMotion
Foundation Foundation
GameController
Metal # needed since 2.0.8
QuartzCore QuartzCore
UIKit) UIKit)
else() else()
list(APPEND _SDL2_FRAMEWORKS list(APPEND _SDL2_FRAMEWORKS
iconv # should be in the system
Carbon Carbon
Cocoa Cocoa
CoreAudio CoreAudio

Loading…
Cancel
Save