From f58e6766ffea28a462130709830aa10d09ef4534 Mon Sep 17 00:00:00 2001 From: hsdk123 Date: Tue, 27 Sep 2022 12:42:15 -0400 Subject: [PATCH] modules: update FindSDL2.cmake to find SDL2-static as well. Happens if sdl was built with static configurations externally. --- modules/FindSDL2.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/FindSDL2.cmake b/modules/FindSDL2.cmake index 311b05211..a6ef40e2e 100644 --- a/modules/FindSDL2.cmake +++ b/modules/FindSDL2.cmake @@ -138,7 +138,7 @@ else() # which CMake somehow prefers before the SDL2-2.0.dylib file. Making # the dylib first so it is preferred. Not sure how this maps to debug # config though :/ - NAMES SDL2-2.0 SDL2 + NAMES SDL2-2.0 SDL2 SDL2-static PATH_SUFFIXES ${_SDL2_LIBRARY_PATH_SUFFIX}) find_library(SDL2_LIBRARY_DEBUG NAMES SDL2d