mac: Patched to compile with CMake project.
authorRyan C. Gordon <icculus@icculus.org>
Sun, 04 Sep 2016 01:42:46 -0400
changeset 10310ac1c949c14b4
parent 10309 38583cb96c1a
child 10311 848951113551
mac: Patched to compile with CMake project.
CMakeLists.txt
     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)