Fixed lime-qt not linking SDL2 library if it is available

This commit is contained in:
OpenSauce04 2024-10-01 12:06:54 +01:00 committed by OpenSauce
parent d01e48c5d1
commit 1831a47e1b

View File

@ -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)