CMakeLists.txt
changeset 9312 705bdbbb1f37
parent 9279 e1d1b6479a14
child 9313 6f04557c6e1f
equal deleted inserted replaced
9311:a4b031e28de8 9312:705bdbbb1f37
  1048   else()
  1048   else()
  1049     message_error("SDL_FILE must be enabled to build on MacOS X")
  1049     message_error("SDL_FILE must be enabled to build on MacOS X")
  1050   endif()
  1050   endif()
  1051 
  1051 
  1052   if(SDL_AUDIO)
  1052   if(SDL_AUDIO)
       
  1053     set(SDL_AUDIO_DRIVER_COREAUDIO 1)
  1053     set(MACOSX_COREAUDIO 1)
  1054     set(MACOSX_COREAUDIO 1)
  1054     file(GLOB AUDIO_SOURCES ${SDL2_SOURCE_DIR}/src/audio/coreaudio/*.c)
  1055     file(GLOB AUDIO_SOURCES ${SDL2_SOURCE_DIR}/src/audio/coreaudio/*.c)
  1055     set(SOURCE_FILES ${SOURCE_FILES} ${AUDIO_SOURCES})
  1056     set(SOURCE_FILES ${SOURCE_FILES} ${AUDIO_SOURCES})
  1056     set(HAVE_SDL_AUDIO TRUE)
  1057     set(HAVE_SDL_AUDIO TRUE)
  1057     set(SDL_FRAMEWORK_COREAUDIO 1)
  1058     set(SDL_FRAMEWORK_COREAUDIO 1)