CMake: Directly link to SDL2-static when appropriate

Trying to be lazy and alias SDL2 to SDL2-static causes issues in later
versions of CMake. Just use the same condition to tell which one to use.
This commit is contained in:
lat9nq 2022-11-28 23:20:04 -05:00
parent 30960e5c47
commit 868c5ca1cb
4 changed files with 15 additions and 4 deletions

View file

@ -69,7 +69,6 @@ if (YUZU_USE_EXTERNAL_SDL2)
set(SDL_SHARED OFF)
add_subdirectory(SDL EXCLUDE_FROM_ALL)
add_library(SDL2 ALIAS SDL2-static)
endif()
# ENet