diff options
author | Jose Fonseca <jfonseca@vmware.com> | 2017-03-22 15:00:53 +0000 |
---|---|---|
committer | Jose Fonseca <jfonseca@vmware.com> | 2017-03-22 15:04:03 +0000 |
commit | 8f55cb5f966edecfb9f7137e38eb3872a0488ac0 (patch) | |
tree | 4a2c1fa4d11b595381568dddf5d8d9757eb7534d /cmake | |
parent | f5df5d036e3031acbd3cdced97d3f0ed46ea9427 (diff) |
thirdparty/dxsdk_aug2007: Bundle D3D8 headers from Aug 2007 DirectX SDK.
A bit of a grey area but common practice according to Microsoft:
https://web.archive.org/web/20170322105210/https://blogs.msdn.microsoft.com/chuckw/2015/03/23/the-zombie-directx-sdk/
These headers are only used with MSVC. And they greatly simplify
building apitrace for Windows, since modern Windows SDK include all
necessary headers except D3D8's.
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/FindDirectX.cmake | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cmake/FindDirectX.cmake b/cmake/FindDirectX.cmake index 31221d01..f4534503 100644 --- a/cmake/FindDirectX.cmake +++ b/cmake/FindDirectX.cmake @@ -103,7 +103,13 @@ if (WIN32) find_winsdk_header (D3D d3d.h) - find_dxsdk_header (D3D8 d3d8.h) + if (MSVC) + set (DirectX_D3D8_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/thirdparty/dxsdk_aug2007) + set (DirectX_D3D8_INCLUDE_FOUND TRUE) + mark_as_advanced (DirectX_D3D8_INCLUDE_FOUND) + else () + find_dxsdk_header (D3D8 d3d8.h) + endif () find_winsdk_header (D3D9 d3d9.h) |