mirror of https://github.com/OpenTTD/OpenTTD.git
Fix: [CMake] Don't detect XAudio2 if defines are missing
This commit is contained in:
parent
b8ec88f6af
commit
0a9aed0522
|
@ -4,6 +4,7 @@ include(CheckCXXSourceCompiles)
|
||||||
set(CMAKE_REQUIRED_FLAGS "")
|
set(CMAKE_REQUIRED_FLAGS "")
|
||||||
|
|
||||||
check_cxx_source_compiles("
|
check_cxx_source_compiles("
|
||||||
|
#include <cstdio>
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|
||||||
#undef NTDDI_VERSION
|
#undef NTDDI_VERSION
|
||||||
|
@ -13,6 +14,6 @@ check_cxx_source_compiles("
|
||||||
#define _WIN32_WINNT _WIN32_WINNT_WIN8
|
#define _WIN32_WINNT _WIN32_WINNT_WIN8
|
||||||
|
|
||||||
#include <xaudio2.h>
|
#include <xaudio2.h>
|
||||||
int main() { return 0; }"
|
int main() { printf(\"%s\\\\n\", XAUDIO2_DLL_A); return 0; }"
|
||||||
XAUDIO2_FOUND
|
XAUDIO2_FOUND
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue