Browse Source

Update FindSDL2.cmake

Be able to find `SDL2-static` if sdl was built with static configurations externally.
pull/594/head
hsdk123 4 years ago committed by GitHub
parent
commit
480d3a2163
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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
# 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

Loading…
Cancel
Save