summaryrefslogtreecommitdiffstats
path: root/src/input_common
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2022-11-30 01:41:47 +0100
committerGitHub <noreply@github.com>2022-11-30 01:41:47 +0100
commit49219b8a864f0176a52486e5a33cc443f91e8f97 (patch)
tree1b655d4b25ff251d75ebbd829f3541999616e4cc /src/input_common
parentMerge pull request #9308 from lat9nq/from-scratch (diff)
parentCMake: Directly link to SDL2-static when appropriate (diff)
downloadyuzu-49219b8a864f0176a52486e5a33cc443f91e8f97.tar
yuzu-49219b8a864f0176a52486e5a33cc443f91e8f97.tar.gz
yuzu-49219b8a864f0176a52486e5a33cc443f91e8f97.tar.bz2
yuzu-49219b8a864f0176a52486e5a33cc443f91e8f97.tar.lz
yuzu-49219b8a864f0176a52486e5a33cc443f91e8f97.tar.xz
yuzu-49219b8a864f0176a52486e5a33cc443f91e8f97.tar.zst
yuzu-49219b8a864f0176a52486e5a33cc443f91e8f97.zip
Diffstat (limited to '')
-rw-r--r--src/input_common/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/input_common/CMakeLists.txt b/src/input_common/CMakeLists.txt
index cc6f0ffc0..193127d0a 100644
--- a/src/input_common/CMakeLists.txt
+++ b/src/input_common/CMakeLists.txt
@@ -55,7 +55,11 @@ if (ENABLE_SDL2)
drivers/sdl_driver.cpp
drivers/sdl_driver.h
)
- target_link_libraries(input_common PRIVATE SDL2)
+ if (YUZU_USE_EXTERNAL_SDL2)
+ target_link_libraries(input_common PRIVATE SDL2-static)
+ else()
+ target_link_libraries(input_common PRIVATE SDL2)
+ endif()
target_compile_definitions(input_common PRIVATE HAVE_SDL2)
endif()