aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/osg/fix-sdl.patch
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/osg/fix-sdl.patch')
-rw-r--r--vcpkg/ports/osg/fix-sdl.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/vcpkg/ports/osg/fix-sdl.patch b/vcpkg/ports/osg/fix-sdl.patch
new file mode 100644
index 0000000..c779235
--- /dev/null
+++ b/vcpkg/ports/osg/fix-sdl.patch
@@ -0,0 +1,14 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 81328ea..c735419 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -755,7 +755,8 @@ ELSE()
+ FIND_PACKAGE(GStreamer COMPONENTS app pbutils)
+ FIND_PACKAGE(GLIB COMPONENTS gobject)
+ FIND_PACKAGE(DirectShow)
+- FIND_PACKAGE(SDL2)
++ find_package(SDL2 CONFIG)
++ set(SDL2_LIBRARY SDL2::SDL2 SDL2::SDL2main)
+ FIND_PACKAGE(SDL)
+ FIND_PACKAGE(Poppler-glib)
+ FIND_PACKAGE(RSVG)