forked from Mirrors/openclonk
Fix problem where the DirectX SDK was not found in some circumstances
parent
f56e4e3dd5
commit
b0a7d4ed0d
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue