Skip to content

Commit

Permalink
mac: Patched to compile with CMake project.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Sep 4, 2016
1 parent 0265d3a commit 6188c33
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 6188c33

Please sign in to comment.