From 09ec4f6e225fb1634a800a58c28a87fe3733b343 Mon Sep 17 00:00:00 2001 From: Matthieu Bouron Date: Tue, 11 Apr 2023 10:21:55 +0200 Subject: dependencies: allow to fallback on CMake to find the SDL2 library On Windows, the SDL2 library is generally provided with only CMake config files. This commit allows meson to fallback on CMake as a last resort to find the SDL2 library. --- mesonbuild/dependencies/ui.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mesonbuild/dependencies/ui.py') diff --git a/mesonbuild/dependencies/ui.py b/mesonbuild/dependencies/ui.py index 71ea1d1d2..f3879bec0 100644 --- a/mesonbuild/dependencies/ui.py +++ b/mesonbuild/dependencies/ui.py @@ -252,8 +252,9 @@ gl_factory = DependencyFactory( sdl2_factory = DependencyFactory( 'sdl2', - [DependencyMethods.PKGCONFIG, DependencyMethods.CONFIG_TOOL, DependencyMethods.EXTRAFRAMEWORK], + [DependencyMethods.PKGCONFIG, DependencyMethods.CONFIG_TOOL, DependencyMethods.EXTRAFRAMEWORK, DependencyMethods.CMAKE], configtool_class=SDL2DependencyConfigTool, + cmake_name='SDL2', ) vulkan_factory = DependencyFactory( -- cgit v1.3