summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake')
-rw-r--r--cmake/FindDirectX.cmake8
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)