summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2021-06-01 10:14:08 +0200
committerGitHub <noreply@github.com>2021-06-01 10:14:08 +0200
commit65b389da702f847243dadacd3d21a263ea072a7a (patch)
tree3617315d124dd3b8d0405871e2e9bd63a664bc0f
parentMerge pull request #6318 from german77/dualJoycon (diff)
parentexternals: Use defaults for building SDL2 on WIN32 (diff)
downloadyuzu-65b389da702f847243dadacd3d21a263ea072a7a.tar
yuzu-65b389da702f847243dadacd3d21a263ea072a7a.tar.gz
yuzu-65b389da702f847243dadacd3d21a263ea072a7a.tar.bz2
yuzu-65b389da702f847243dadacd3d21a263ea072a7a.tar.lz
yuzu-65b389da702f847243dadacd3d21a263ea072a7a.tar.xz
yuzu-65b389da702f847243dadacd3d21a263ea072a7a.tar.zst
yuzu-65b389da702f847243dadacd3d21a263ea072a7a.zip
-rw-r--r--externals/CMakeLists.txt24
1 files changed, 13 insertions, 11 deletions
diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txt
index fe1c088ca..aae0baa0b 100644
--- a/externals/CMakeLists.txt
+++ b/externals/CMakeLists.txt
@@ -47,19 +47,21 @@ target_include_directories(unicorn-headers INTERFACE ./unicorn/include)
# SDL2
if (NOT SDL2_FOUND AND ENABLE_SDL2)
- # Yuzu itself needs: Events Joystick Haptic Sensor Timers
- # Yuzu-cmd also needs: Video (depends on Loadso/Dlopen)
- set(SDL_UNUSED_SUBSYSTEMS
- Atomic Audio Render Power Threads
- File CPUinfo Filesystem Locale)
- foreach(_SUB ${SDL_UNUSED_SUBSYSTEMS})
- string(TOUPPER ${_SUB} _OPT)
- option(SDL_${_OPT} "" OFF)
- endforeach()
-
+ if (NOT WIN32)
+ # Yuzu itself needs: Events Joystick Haptic Sensor Timers
+ # Yuzu-cmd also needs: Video (depends on Loadso/Dlopen)
+ set(SDL_UNUSED_SUBSYSTEMS
+ Atomic Audio Render Power Threads
+ File CPUinfo Filesystem Locale)
+ foreach(_SUB ${SDL_UNUSED_SUBSYSTEMS})
+ string(TOUPPER ${_SUB} _OPT)
+ option(SDL_${_OPT} "" OFF)
+ endforeach()
+
+ option(HIDAPI "" ON)
+ endif()
set(SDL_STATIC ON)
set(SDL_SHARED OFF)
- option(HIDAPI "" ON)
add_subdirectory(SDL EXCLUDE_FROM_ALL)
add_library(SDL2 ALIAS SDL2-static)