From 65321858f558e0851a27158cbf3d207f530148e8 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Mon, 11 Mar 2013 22:37:59 +0000 Subject: cmake: Fix D2D include path w/ Visual Studio 2012. --- cmake/FindDirectX.cmake | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'cmake') diff --git a/cmake/FindDirectX.cmake b/cmake/FindDirectX.cmake index 43472fad..e71a7733 100644 --- a/cmake/FindDirectX.cmake +++ b/cmake/FindDirectX.cmake @@ -214,13 +214,11 @@ if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") find_path (DirectX_D2D1_INCLUDE_DIR d2d1.h - PATHS - "${DirectX_ROOT_DIR}/Include" + PATHS ${DirectX_INC_SEARCH_PATH} DOC "The directory where d2d1.h resides") find_library (DirectX_D2D1_LIBRARY d2d1 - PATHS - "${DirectX_ROOT_DIR}/Lib/x86" + PATHS ${DirectX_LIB_SEARCH_PATH} DOC "The directory where d2d1 resides") if (DirectX_D2D1_INCLUDE_DIR AND DirectX_D2D1_LIBRARY) -- cgit v1.2.3