summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2015-01-15 14:20:17 +0000
committerJosé Fonseca <jfonseca@vmware.com>2015-01-15 14:20:17 +0000
commit4decd3216415a87ca247423308f5a2faab0ac33e (patch)
tree7ca726414c8cc531ad7f570b17423197cd826cb0 /cmake
parent50c2a14bcbe7467404b0fc843680696d3f037425 (diff)
cmake: Fix d3d.h include discovery on XP builds.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/FindDirectX.cmake7
1 files changed, 6 insertions, 1 deletions
diff --git a/cmake/FindDirectX.cmake b/cmake/FindDirectX.cmake
index 28100369..29f04b97 100644
--- a/cmake/FindDirectX.cmake
+++ b/cmake/FindDirectX.cmake
@@ -144,7 +144,12 @@ if (WIN32)
find_winsdk_library (DDRAW ddraw)
find_combined (DDRAW DDRAW DDRAW)
- find_winsdk_header (D3D d3d.h)
+ if (CMAKE_GENERATOR_TOOLSET MATCHES "_xp$")
+ # Windows 7 SDKs, used by XP toolset, do not include d3d.h
+ find_dxsdk_header (D3D d3d.h)
+ else ()
+ find_winsdk_header (D3D d3d.h)
+ endif ()
find_combined (D3D D3D DDRAW)
find_dxsdk_header (D3DX d3dx.h)