mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
Merge pull request #6396 from lat9nq/mingw-sdl-fix
externals: Use defaults for building SDL2 on WIN32
This commit is contained in:
commit
65b389da70
1 changed files with 12 additions and 10 deletions
4
externals/CMakeLists.txt
vendored
4
externals/CMakeLists.txt
vendored
|
@ -47,6 +47,7 @@ target_include_directories(unicorn-headers INTERFACE ./unicorn/include)
|
||||||
|
|
||||||
# SDL2
|
# SDL2
|
||||||
if (NOT SDL2_FOUND AND ENABLE_SDL2)
|
if (NOT SDL2_FOUND AND ENABLE_SDL2)
|
||||||
|
if (NOT WIN32)
|
||||||
# Yuzu itself needs: Events Joystick Haptic Sensor Timers
|
# Yuzu itself needs: Events Joystick Haptic Sensor Timers
|
||||||
# Yuzu-cmd also needs: Video (depends on Loadso/Dlopen)
|
# Yuzu-cmd also needs: Video (depends on Loadso/Dlopen)
|
||||||
set(SDL_UNUSED_SUBSYSTEMS
|
set(SDL_UNUSED_SUBSYSTEMS
|
||||||
|
@ -57,9 +58,10 @@ if (NOT SDL2_FOUND AND ENABLE_SDL2)
|
||||||
option(SDL_${_OPT} "" OFF)
|
option(SDL_${_OPT} "" OFF)
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
|
option(HIDAPI "" ON)
|
||||||
|
endif()
|
||||||
set(SDL_STATIC ON)
|
set(SDL_STATIC ON)
|
||||||
set(SDL_SHARED OFF)
|
set(SDL_SHARED OFF)
|
||||||
option(HIDAPI "" ON)
|
|
||||||
|
|
||||||
add_subdirectory(SDL EXCLUDE_FROM_ALL)
|
add_subdirectory(SDL EXCLUDE_FROM_ALL)
|
||||||
add_library(SDL2 ALIAS SDL2-static)
|
add_library(SDL2 ALIAS SDL2-static)
|
||||||
|
|
Loading…
Reference in a new issue