diff --git a/CMakeLists.txt b/CMakeLists.txt index cdf43a4b0e..c44fa80227 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1809,7 +1809,12 @@ elseif(WINDOWS) check_include_file(d3d9.h HAVE_D3D_H) check_include_file(d3d11_1.h HAVE_D3D11_H) - check_include_file(d3d12.h HAVE_D3D12_H) + check_c_source_compiles(" + #include + #include + ID3D12Device1 *device; + int main(int argc, char **argv) {return 0; } + " 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)