mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-06-03 05:05:00 -06:00
30 lines
1.0 KiB
Diff
30 lines
1.0 KiB
Diff
diff --git a/build/cmake/init.cmake b/build/cmake/init.cmake
|
|
index 4ed7b264ef..9abf7c9d5d 100644
|
|
--- a/build/cmake/init.cmake
|
|
+++ b/build/cmake/init.cmake
|
|
@@ -667,7 +667,9 @@ if(wxUSE_GUI)
|
|
endif()
|
|
|
|
if(wxUSE_SOUND AND wxUSE_LIBSDL AND UNIX AND NOT APPLE)
|
|
- find_package(SDL2)
|
|
+ find_package(SDL2 CONFIG REQUIRED)
|
|
+ set(SDL2_INCLUDE_DIR "" CACHE INTERNAL "")
|
|
+ set(SDL2_LIBRARY SDL2::SDL2 CACHE INTERNAL "")
|
|
if(NOT SDL2_FOUND)
|
|
find_package(SDL)
|
|
mark_as_advanced(SDL_INCLUDE_DIR SDLMAIN_LIBRARY)
|
|
diff --git a/build/cmake/wxWidgetsConfig.cmake.in b/build/cmake/wxWidgetsConfig.cmake.in
|
|
index c134900764..7bcb691074 100644
|
|
--- a/build/cmake/wxWidgetsConfig.cmake.in
|
|
+++ b/build/cmake/wxWidgetsConfig.cmake.in
|
|
@@ -156,6 +156,9 @@ endforeach()
|
|
|
|
include(CMakeFindDependencyMacro)
|
|
find_dependency(NanoSVG CONFIG)
|
|
+if("@wxUSE_LIBSDL@")
|
|
+ find_dependency(SDL2 CONFIG)
|
|
+endif()
|
|
|
|
if(TARGET wx::wxnet AND @wxUSE_WEBREQUEST_CURL@)
|
|
# make sure CURL targets are available:
|