CMakeLists.txt
changeset 10349 4b978b7998aa
parent 10348 58e8745fb4e1
child 10375 9cf405a99347
     1.1 --- a/CMakeLists.txt	Thu Sep 15 08:46:14 2016 -0700
     1.2 +++ b/CMakeLists.txt	Thu Sep 15 08:57:56 2016 -0700
     1.3 @@ -1209,7 +1209,8 @@
     1.4      file(GLOB AUDIO_SOURCES ${SDL2_SOURCE_DIR}/src/audio/coreaudio/*.m)
     1.5      set(SOURCE_FILES ${SOURCE_FILES} ${AUDIO_SOURCES})
     1.6      set(HAVE_SDL_AUDIO TRUE)
     1.7 -    set(SDL_FRAMEWORK_AVFOUNDATION 1)
     1.8 +    set(SDL_FRAMEWORK_COREAUDIO 1)
     1.9 +    set(SDL_FRAMEWORK_AUDIOTOOLBOX 1)
    1.10    endif()
    1.11  
    1.12    if(SDL_JOYSTICK)
    1.13 @@ -1278,9 +1279,13 @@
    1.14      find_library(CARBON_LIBRARY Carbon)
    1.15      list(APPEND EXTRA_LIBS ${CARBON_LIBRARY})
    1.16    endif()
    1.17 -  if(SDL_FRAMEWORK_AVFOUNDATION)
    1.18 -    find_library(AVFOUNDATION AVFoundation)
    1.19 -    list(APPEND EXTRA_LIBS ${AVFOUNDATION})
    1.20 +  if(SDL_FRAMEWORK_COREAUDIO)
    1.21 +    find_library(COREAUDIO CoreAudio)
    1.22 +    list(APPEND EXTRA_LIBS ${COREAUDIO})
    1.23 +  endif()
    1.24 +  if(SDL_FRAMEWORK_AUDIOTOOLBOX)
    1.25 +    find_library(AUDIOTOOLBOX AudioToolbox)
    1.26 +    list(APPEND EXTRA_LIBS ${AUDIOTOOLBOX})
    1.27    endif()
    1.28  
    1.29    # iOS hack needed - http://code.google.com/p/ios-cmake/ ?