CMakeLists.txt
changeset 11335 a9f4f63b5add
parent 11326 ba4fe3686323
child 11337 d9f24e95e8ba
     1.1 --- a/CMakeLists.txt	Mon Aug 21 00:42:06 2017 -0400
     1.2 +++ b/CMakeLists.txt	Mon Aug 21 11:17:38 2017 -0700
     1.3 @@ -1153,6 +1153,7 @@
     1.4      check_include_file(dsound.h HAVE_DSOUND_H)
     1.5      check_include_file(dinput.h HAVE_DINPUT_H)
     1.6      check_include_file(xaudio2.h HAVE_XAUDIO2_H)
     1.7 +    check_include_file(mmdeviceapi.h HAVE_MMDEVICEAPI_H)
     1.8      check_include_file(audioclient.h HAVE_AUDIOCLIENT_H)
     1.9      check_include_file(dxgi.h HAVE_DXGI_H)
    1.10      if(HAVE_D3D_H OR HAVE_D3D11_H OR HAVE_DDRAW_H OR HAVE_DSOUND_H OR HAVE_DINPUT_H OR HAVE_XAUDIO2_H)
    1.11 @@ -1184,7 +1185,7 @@
    1.12        set(SOURCE_FILES ${SOURCE_FILES} ${XAUDIO2_AUDIO_SOURCES})
    1.13      endif()
    1.14  
    1.15 -    if(HAVE_AUDIOCLIENT_H)
    1.16 +    if(HAVE_AUDIOCLIENT_H AND HAVE_MMDEVICEAPI_H)
    1.17        set(SDL_AUDIO_DRIVER_WASAPI 1)
    1.18        file(GLOB WASAPI_AUDIO_SOURCES ${SDL2_SOURCE_DIR}/src/audio/wasapi/*.c)
    1.19        set(SOURCE_FILES ${SOURCE_FILES} ${WASAPI_AUDIO_SOURCES})