Fixed link error for MSVC x64 build with modern Windows SDK

win32video.obj : error LNK2001: unresolved external symbol IID_IDirectDraw2
This commit is contained in:
alexey.lysiuk 2017-04-14 16:13:51 +03:00
parent 33145610b1
commit fd07b56ae9
1 changed files with 1 additions and 0 deletions

View File

@ -111,6 +111,7 @@ if( WIN32 )
( MSVC15 AND NOT CMAKE_GENERATOR_TOOLSET STREQUAL "v150_xp" ) ) # For VS 2017. ( MSVC15 AND NOT CMAKE_GENERATOR_TOOLSET STREQUAL "v150_xp" ) ) # For VS 2017.
# for modern Windows SDKs the DirectX headers should be available by default. # for modern Windows SDKs the DirectX headers should be available by default.
set( DX_dinput8_LIBRARY dinput8 ) set( DX_dinput8_LIBRARY dinput8 )
set( DX_dxguid_LIBRARY dxguid )
else() else()
find_path( D3D_INCLUDE_DIR d3d9.h find_path( D3D_INCLUDE_DIR d3d9.h