CMakeLists.txt
changeset 10310 ac1c949c14b4
parent 10121 6b6ded44e6e0
child 10321 6564d3e3c5f6
     1.1 --- a/CMakeLists.txt	Sun Sep 04 01:23:55 2016 -0400
     1.2 +++ b/CMakeLists.txt	Sun Sep 04 01:42:46 2016 -0400
     1.3 @@ -1201,6 +1201,7 @@
     1.4      set(HAVE_SDL_AUDIO TRUE)
     1.5      set(SDL_FRAMEWORK_COREAUDIO 1)
     1.6      set(SDL_FRAMEWORK_AUDIOUNIT 1)
     1.7 +    set(SDL_FRAMEWORK_AUDIOTOOLBOX 1)
     1.8    endif()
     1.9  
    1.10    if(SDL_JOYSTICK)
    1.11 @@ -1277,6 +1278,10 @@
    1.12      find_library(AUDIOUNIT AudioUnit)
    1.13      list(APPEND EXTRA_LIBS ${AUDIOUNIT})
    1.14    endif()
    1.15 +  if(SDL_FRAMEWORK_AUDIOTOOLBOX)
    1.16 +    find_library(AUDIOTOOLBOX AudioToolbox)
    1.17 +    list(APPEND EXTRA_LIBS ${AUDIOTOOLBOX})
    1.18 +  endif()
    1.19  
    1.20    # iOS hack needed - http://code.google.com/p/ios-cmake/ ?
    1.21    if(SDL_VIDEO)