Commit 6188c33420a176d398421322155ed9e9b914e5d5

Ryan C. Gordon 2016-09-04T01:42:46

mac: Patched to compile with CMake project.

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 54571ff..17a218f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1201,6 +1201,7 @@ elseif(APPLE)
     set(HAVE_SDL_AUDIO TRUE)
     set(SDL_FRAMEWORK_COREAUDIO 1)
     set(SDL_FRAMEWORK_AUDIOUNIT 1)
+    set(SDL_FRAMEWORK_AUDIOTOOLBOX 1)
   endif()
 
   if(SDL_JOYSTICK)
@@ -1277,6 +1278,10 @@ elseif(APPLE)
     find_library(AUDIOUNIT AudioUnit)
     list(APPEND EXTRA_LIBS ${AUDIOUNIT})
   endif()
+  if(SDL_FRAMEWORK_AUDIOTOOLBOX)
+    find_library(AUDIOTOOLBOX AudioToolbox)
+    list(APPEND EXTRA_LIBS ${AUDIOTOOLBOX})
+  endif()
 
   # iOS hack needed - http://code.google.com/p/ios-cmake/ ?
   if(SDL_VIDEO)