yuzu-emu
/
yuzu-mainline
Archived
1
0
Fork 0

Merge pull request #1517 from Lectem/fixSDLcmake

fix SDL2 detection for Visual
This commit is contained in:
bunnei 2016-03-23 13:35:16 -04:00
commit 0a1c73e396
1 changed files with 7 additions and 1 deletions

View File

@ -134,11 +134,17 @@ SET(SDL2_SEARCH_PATHS
${SDL2_PATH}
)
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
set(VC_LIB_PATH_SUFFIX lib/x64)
else()
set(VC_LIB_PATH_SUFFIX lib/x86)
endif()
FIND_LIBRARY(SDL2_LIBRARY_TEMP
NAMES SDL2
HINTS
$ENV{SDL2DIR}
PATH_SUFFIXES lib64 lib
PATH_SUFFIXES lib64 lib ${VC_LIB_PATH_SUFFIX}
PATHS ${SDL2_SEARCH_PATHS}
)