Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-gnome
Path: blob/main/emulators/citra/files/patch-CMakeLists.txt
16125 views
1
citra-qt currently needs SDL for audio and input
2
3
--- CMakeLists.txt.orig 2017-08-09 15:54:29 UTC
4
+++ CMakeLists.txt
5
@@ -207,15 +207,15 @@ if (ENABLE_SDL2)
6
else()
7
find_package(SDL2 REQUIRED)
8
endif()
9
-
10
- if (SDL2_FOUND)
11
- # TODO(yuriks): Make FindSDL2.cmake export an IMPORTED library instead
12
- add_library(SDL2 INTERFACE)
13
- target_link_libraries(SDL2 INTERFACE "${SDL2_LIBRARY}")
14
- target_include_directories(SDL2 INTERFACE "${SDL2_INCLUDE_DIR}")
15
- endif()
16
else()
17
- set(SDL2_FOUND NO)
18
+ find_package(SDL2)
19
+endif()
20
+
21
+if (SDL2_FOUND)
22
+ # TODO(yuriks): Make FindSDL2.cmake export an IMPORTED library instead
23
+ add_library(SDL2 INTERFACE)
24
+ target_link_libraries(SDL2 INTERFACE "${SDL2_LIBRARY}")
25
+ target_include_directories(SDL2 INTERFACE "${SDL2_INCLUDE_DIR}")
26
endif()
27
28
if (ENABLE_QT)
29
30