Changeset - r24398:0e22544ffaa4
[Not reviewed]
master
0 1 0
Charles Pigott - 4 years ago 2020-11-25 23:37:21
charlespigott@googlemail.com
Fix: [CMake] Don't detect XAudio2 if defines are missing
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
cmake/FindXaudio2.cmake
Show inline comments
 
@@ -4,6 +4,7 @@ include(CheckCXXSourceCompiles)
 
set(CMAKE_REQUIRED_FLAGS "")
 

	
 
check_cxx_source_compiles("
 
    #include <cstdio>
 
    #include <windows.h>
 

	
 
    #undef NTDDI_VERSION
 
@@ -13,6 +14,6 @@ check_cxx_source_compiles("
 
    #define _WIN32_WINNT     _WIN32_WINNT_WIN8
 

	
 
    #include <xaudio2.h>
 
    int main() { return 0; }"
 
    int main() { printf(\"%s\\\\n\", XAUDIO2_DLL_A); return 0; }"
 
    XAUDIO2_FOUND
 
)
0 comments (0 inline, 0 general)