Fix SDL2 if Target unavailable

This commit is contained in:
Florian Märkl 2019-08-18 17:35:10 +02:00 committed by Florian Märkl
commit 851593d5df
No known key found for this signature in database
GPG key ID: 125BC8A5A6A1E857
2 changed files with 20 additions and 1 deletions

View file

@ -10,7 +10,7 @@ if(CHIAKI_GUI_ENABLE_QT_GAMEPAD)
find_package(Qt5 REQUIRED COMPONENTS Gamepad)
endif()
if(CHIAKI_GUI_ENABLE_SDL_GAMECONTROLLER)
find_package(SDL2 REQUIRED)
find_package(SDL2 MODULE REQUIRED)
endif()
find_package(FFMPEG REQUIRED COMPONENTS avcodec avutil)