1 # Autodetect if xaudio2 can be used.
3 include(CheckCXXSourceCompiles)
4 set(CMAKE_REQUIRED_FLAGS "")
6 check_cxx_source_compiles("
13 #define NTDDI_VERSION NTDDI_WIN8
14 #define _WIN32_WINNT _WIN32_WINNT_WIN8
17 int main() { printf(\"%s\\\\n\", XAUDIO2_DLL_A); return 0; }"