From fd07b56ae914e2026f3e2fed993168ae321e685b Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Fri, 14 Apr 2017 16:13:51 +0300 Subject: [PATCH] Fixed link error for MSVC x64 build with modern Windows SDK win32video.obj : error LNK2001: unresolved external symbol IID_IDirectDraw2 --- src/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a6dcfd766..da79cd408 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -111,6 +111,7 @@ if( WIN32 ) ( MSVC15 AND NOT CMAKE_GENERATOR_TOOLSET STREQUAL "v150_xp" ) ) # For VS 2017. # for modern Windows SDKs the DirectX headers should be available by default. set( DX_dinput8_LIBRARY dinput8 ) + set( DX_dxguid_LIBRARY dxguid ) else() find_path( D3D_INCLUDE_DIR d3d9.h