Path: blob/main/emulators/citra/files/patch-CMakeLists.txt
16125 views
citra-qt currently needs SDL for audio and input12--- CMakeLists.txt.orig 2017-08-09 15:54:29 UTC3+++ CMakeLists.txt4@@ -207,15 +207,15 @@ if (ENABLE_SDL2)5else()6find_package(SDL2 REQUIRED)7endif()8-9- if (SDL2_FOUND)10- # TODO(yuriks): Make FindSDL2.cmake export an IMPORTED library instead11- add_library(SDL2 INTERFACE)12- target_link_libraries(SDL2 INTERFACE "${SDL2_LIBRARY}")13- target_include_directories(SDL2 INTERFACE "${SDL2_INCLUDE_DIR}")14- endif()15else()16- set(SDL2_FOUND NO)17+ find_package(SDL2)18+endif()19+20+if (SDL2_FOUND)21+ # TODO(yuriks): Make FindSDL2.cmake export an IMPORTED library instead22+ add_library(SDL2 INTERFACE)23+ target_link_libraries(SDL2 INTERFACE "${SDL2_LIBRARY}")24+ target_include_directories(SDL2 INTERFACE "${SDL2_INCLUDE_DIR}")25endif()2627if (ENABLE_QT)282930