# HG changeset patch # User Charles Pigott # Date 2020-11-25 23:37:21 # Node ID 0e22544ffaa4a16bc895271b541ed6dda138d2fd # Parent fdd7ee5aa02d2906df97a613add675177257352b Fix: [CMake] Don't detect XAudio2 if defines are missing diff --git a/cmake/FindXaudio2.cmake b/cmake/FindXaudio2.cmake --- a/cmake/FindXaudio2.cmake +++ b/cmake/FindXaudio2.cmake @@ -4,6 +4,7 @@ include(CheckCXXSourceCompiles) set(CMAKE_REQUIRED_FLAGS "") check_cxx_source_compiles(" + #include #include #undef NTDDI_VERSION @@ -13,6 +14,6 @@ check_cxx_source_compiles(" #define _WIN32_WINNT _WIN32_WINNT_WIN8 #include - int main() { return 0; }" + int main() { printf(\"%s\\\\n\", XAUDIO2_DLL_A); return 0; }" XAUDIO2_FOUND )