fix HAVE_SDL_AUDIO flag of CMakeLists.txt II.
parent
014e2bbdb2
commit
3dba2a73f1
|
@ -981,12 +981,14 @@ if(SDL_AUDIO)
|
||||||
file(GLOB DUMMYAUDIO_SOURCES ${SDL2_SOURCE_DIR}/src/audio/dummy/*.c)
|
file(GLOB DUMMYAUDIO_SOURCES ${SDL2_SOURCE_DIR}/src/audio/dummy/*.c)
|
||||||
set(SOURCE_FILES ${SOURCE_FILES} ${DUMMYAUDIO_SOURCES})
|
set(SOURCE_FILES ${SOURCE_FILES} ${DUMMYAUDIO_SOURCES})
|
||||||
set(HAVE_DUMMYAUDIO TRUE)
|
set(HAVE_DUMMYAUDIO TRUE)
|
||||||
|
set(HAVE_SDL_AUDIO TRUE)
|
||||||
endif()
|
endif()
|
||||||
if(SDL_DISKAUDIO)
|
if(SDL_DISKAUDIO)
|
||||||
set(SDL_AUDIO_DRIVER_DISK 1)
|
set(SDL_AUDIO_DRIVER_DISK 1)
|
||||||
file(GLOB DISKAUDIO_SOURCES ${SDL2_SOURCE_DIR}/src/audio/disk/*.c)
|
file(GLOB DISKAUDIO_SOURCES ${SDL2_SOURCE_DIR}/src/audio/disk/*.c)
|
||||||
set(SOURCE_FILES ${SOURCE_FILES} ${DISKAUDIO_SOURCES})
|
set(SOURCE_FILES ${SOURCE_FILES} ${DISKAUDIO_SOURCES})
|
||||||
set(HAVE_DISKAUDIO TRUE)
|
set(HAVE_DISKAUDIO TRUE)
|
||||||
|
set(HAVE_SDL_AUDIO TRUE)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue