diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/magnum/005-fix-find-sdl2.patch | |
Diffstat (limited to 'vcpkg/ports/magnum/005-fix-find-sdl2.patch')
| -rwxr-xr-x | vcpkg/ports/magnum/005-fix-find-sdl2.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/vcpkg/ports/magnum/005-fix-find-sdl2.patch b/vcpkg/ports/magnum/005-fix-find-sdl2.patch new file mode 100755 index 0000000..83173b6 --- /dev/null +++ b/vcpkg/ports/magnum/005-fix-find-sdl2.patch @@ -0,0 +1,13 @@ +diff --git a/src/Magnum/Platform/CMakeLists.txt b/src/Magnum/Platform/CMakeLists.txt
+index f1b404f..19babf4 100644
+--- a/src/Magnum/Platform/CMakeLists.txt
++++ b/src/Magnum/Platform/CMakeLists.txt
+@@ -292,7 +292,7 @@ endif()
+
+ # SDL2 application
+ if(WITH_SDL2APPLICATION)
+- find_package(SDL2)
++ find_package(SDL2 CONFIG REQUIRED)
+ if(NOT SDL2_FOUND)
+ message(FATAL_ERROR "SDL2 library, required by Sdl2Application, was not found. Set WITH_SDL2APPLICATION to OFF to skip building it.")
+ endif()
|