mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-22 06:42:46 +01:00
fix SDL2 detection for Visual
This commit is contained in:
parent
a2024d7497
commit
c8f8e70d31
1 changed files with 7 additions and 1 deletions
8
externals/cmake-modules/FindSDL2.cmake
vendored
8
externals/cmake-modules/FindSDL2.cmake
vendored
|
@ -134,11 +134,17 @@ SET(SDL2_SEARCH_PATHS
|
||||||
${SDL2_PATH}
|
${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
|
FIND_LIBRARY(SDL2_LIBRARY_TEMP
|
||||||
NAMES SDL2
|
NAMES SDL2
|
||||||
HINTS
|
HINTS
|
||||||
$ENV{SDL2DIR}
|
$ENV{SDL2DIR}
|
||||||
PATH_SUFFIXES lib64 lib
|
PATH_SUFFIXES lib64 lib ${VC_LIB_PATH_SUFFIX}
|
||||||
PATHS ${SDL2_SEARCH_PATHS}
|
PATHS ${SDL2_SEARCH_PATHS}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue