Fix problem where the DirectX SDK was not found in some circumstances

stable-5.2
Nicolas Hake 2009-07-24 00:48:41 +02:00
parent f56e4e3dd5
commit b0a7d4ed0d
1 changed files with 1 additions and 1 deletions

View File

@ -495,7 +495,7 @@ option(USE_SDL "Use SDL to create windows etc." ${INITIAL_USE_SDL_VALUE})
if(WIN32)
option(USE_DIRECTX "Enable DirectX support" ON)
if(EXISTS $ENV{DXSDK_DIR})
list(APPEND CMAKE_INCLUDE_PATH $ENV{DXSDK_DIR}/Include)
include_directories(SYSTEM $ENV{DXSDK_DIR}/Include)
if(${FIND_LIBRARY_USE_LIB64_PATHS})
list(APPEND CMAKE_LIBRARY_PATH $ENV{DXSDK_DIR}/Lib/x64)
else()