Browse Source

modules: update FindSDL2.cmake to find SDL2-static as well.

Happens if sdl was built with static configurations externally.
pull/595/head
hsdk123 4 years ago committed by Vladimír Vondruš
parent
commit
f58e6766ff
  1. 2
      modules/FindSDL2.cmake

2
modules/FindSDL2.cmake

@ -138,7 +138,7 @@ else()
# which CMake somehow prefers before the SDL2-2.0.dylib file. Making # 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 # the dylib first so it is preferred. Not sure how this maps to debug
# config though :/ # config though :/
NAMES SDL2-2.0 SDL2 NAMES SDL2-2.0 SDL2 SDL2-static
PATH_SUFFIXES ${_SDL2_LIBRARY_PATH_SUFFIX}) PATH_SUFFIXES ${_SDL2_LIBRARY_PATH_SUFFIX})
find_library(SDL2_LIBRARY_DEBUG find_library(SDL2_LIBRARY_DEBUG
NAMES SDL2d NAMES SDL2d

Loading…
Cancel
Save