cmake+d3d12: d3d12 now builds succesfully on older Windows SDKs, so simplify the checks

This commit is contained in:
Anonymous Maarten
2024-05-24 21:47:57 +02:00
parent 318ab9361b
commit 89a4d9ae67
2 changed files with 6 additions and 11 deletions

View File

@@ -1869,14 +1869,7 @@ elseif(WINDOWS)
check_include_file(d3d9.h HAVE_D3D_H)
check_include_file(d3d11_1.h HAVE_D3D11_H)
check_c_source_compiles("
#include <winsdkver.h>
#include <sdkddkver.h>
#include <d3d12.h>
ID3D12Device1 *device;
#if WDK_NTDDI_VERSION > 0x0A000008
int main(int argc, char **argv) { return 0; }
#endif" HAVE_D3D12_H)
check_include_file(d3d12.h HAVE_D3D12_H)
check_include_file(ddraw.h HAVE_DDRAW_H)
check_include_file(dsound.h HAVE_DSOUND_H)
check_include_file(dinput.h HAVE_DINPUT_H)