Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/emulators/citra/files/patch-CMakeLists.txt
16461 views
1
citra-qt currently needs SDL for audio and input
2
3
--- CMakeLists.txt.orig 2022-09-01 18:37:46 UTC
4
+++ CMakeLists.txt
5
@@ -71,7 +71,6 @@ endfunction()
6
endif()
7
endforeach()
8
endfunction()
9
-check_submodules_present()
10
11
configure_file(${PROJECT_SOURCE_DIR}/dist/compatibility_list/compatibility_list.qrc
12
${PROJECT_BINARY_DIR}/dist/compatibility_list/compatibility_list.qrc
13
@@ -168,15 +167,15 @@ if (ENABLE_SDL2)
14
else()
15
find_package(SDL2 REQUIRED)
16
endif()
17
-
18
- if (SDL2_FOUND)
19
- # TODO(yuriks): Make FindSDL2.cmake export an IMPORTED library instead
20
- add_library(SDL2 INTERFACE)
21
- target_link_libraries(SDL2 INTERFACE "${SDL2_LIBRARY}")
22
- target_include_directories(SDL2 INTERFACE "${SDL2_INCLUDE_DIR}")
23
- endif()
24
else()
25
- set(SDL2_FOUND NO)
26
+ find_package(SDL2)
27
+endif()
28
+
29
+if (SDL2_FOUND)
30
+ # TODO(yuriks): Make FindSDL2.cmake export an IMPORTED library instead
31
+ add_library(SDL2 INTERFACE)
32
+ target_link_libraries(SDL2 INTERFACE "${SDL2_LIBRARY}")
33
+ target_include_directories(SDL2 INTERFACE "${SDL2_INCLUDE_DIR}")
34
endif()
35
36
if (ENABLE_QT)
37
38