Fixed bug 2807 - Not using CoreAudio on OS X when built via CMake
authorFelix H. Dahlke <fhd@ubercode.de>
Sat, 17 Jan 2015 04:36:15 +0100
changeset 9312 705bdbbb1f37
parent 9311 a4b031e28de8
child 9313 6f04557c6e1f
Fixed bug 2807 - Not using CoreAudio on OS X when built via CMake
CMakeLists.txt
--- a/CMakeLists.txt	Fri Jan 16 23:07:10 2015 +0100
+++ b/CMakeLists.txt	Sat Jan 17 04:36:15 2015 +0100
@@ -1050,6 +1050,7 @@
   endif()
 
   if(SDL_AUDIO)
+    set(SDL_AUDIO_DRIVER_COREAUDIO 1)
     set(MACOSX_COREAUDIO 1)
     file(GLOB AUDIO_SOURCES ${SDL2_SOURCE_DIR}/src/audio/coreaudio/*.c)
     set(SOURCE_FILES ${SOURCE_FILES} ${AUDIO_SOURCES})