diff options
Diffstat (limited to 'vcpkg/ports/sdl2pp/fix-usage.patch')
| -rw-r--r-- | vcpkg/ports/sdl2pp/fix-usage.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/vcpkg/ports/sdl2pp/fix-usage.patch b/vcpkg/ports/sdl2pp/fix-usage.patch new file mode 100644 index 0000000..bea5fb0 --- /dev/null +++ b/vcpkg/ports/sdl2pp/fix-usage.patch @@ -0,0 +1,23 @@ +diff --git a/FindSDL2PP.cmake.in b/FindSDL2PP.cmake.in +index 344d2b2..06d6278 100644 +--- a/FindSDL2PP.cmake.in ++++ b/FindSDL2PP.cmake.in +@@ -6,6 +6,18 @@ + # SDL2PP_INCLUDE_DIRS + # SDL2PP_LIBRARIES + ++include(CMakeFindDependencyMacro) ++find_dependency(SDL2 CONFIG) ++IF(@SDL2PP_WITH_IMAGE@) ++ find_dependency(SDL2_image CONFIG) ++ENDIF() ++IF(@SDL2PP_WITH_TTF@) ++ find_dependency(SDL2_ttf CONFIG) ++ENDIF() ++IF(@SDL2PP_WITH_MIXER@) ++ find_dependency(SDL2_mixer CONFIG) ++ENDIF() ++ + IF(SDL2PP_INCLUDE_DIR AND SDL2PP_LIBRARY) + # in cache already + SET(SDL2PP_FIND_QUIETLY TRUE) |