summaryrefslogtreecommitdiff
path: root/src/input_common
diff options
context:
space:
mode:
authorGravatar Morph2022-11-29 19:41:47 -0500
committerGravatar GitHub2022-11-29 19:41:47 -0500
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.gz
yuzu-49219b8a864f0176a52486e5a33cc443f91e8f97.tar.xz
yuzu-49219b8a864f0176a52486e5a33cc443f91e8f97.zip
Merge pull request #9349 from lat9nq/cmake-322
CMakeLists: Bump minimum required CMake version to 3.22
Diffstat (limited to 'src/input_common')
-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)
55 drivers/sdl_driver.cpp 55 drivers/sdl_driver.cpp
56 drivers/sdl_driver.h 56 drivers/sdl_driver.h
57 ) 57 )
58 target_link_libraries(input_common PRIVATE SDL2) 58 if (YUZU_USE_EXTERNAL_SDL2)
59 target_link_libraries(input_common PRIVATE SDL2-static)
60 else()
61 target_link_libraries(input_common PRIVATE SDL2)
62 endif()
59 target_compile_definitions(input_common PRIVATE HAVE_SDL2) 63 target_compile_definitions(input_common PRIVATE HAVE_SDL2)
60endif() 64endif()
61 65