From 1831a47e1b8dfaccaaf599a08af39a9c12bdfefa Mon Sep 17 00:00:00 2001 From: OpenSauce04 Date: Tue, 1 Oct 2024 12:06:54 +0100 Subject: [PATCH] Fixed `lime-qt` not linking SDL2 library if it is available --- src/lime_qt/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lime_qt/CMakeLists.txt b/src/lime_qt/CMakeLists.txt index b5af9fe97..7d61acc2a 100644 --- a/src/lime_qt/CMakeLists.txt +++ b/src/lime_qt/CMakeLists.txt @@ -285,6 +285,11 @@ elseif(WIN32) endif() endif() +if(ENABLE_SDL2) + target_link_libraries(lime-qt PRIVATE SDL2::SDL2) + target_compile_definitions(lime-qt PRIVATE HAVE_SDL2) +endif() + create_target_directory_groups(lime-qt) target_link_libraries(lime-qt PRIVATE audio_core lime_common lime_core input_common network video_core)