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:
parent
30960e5c47
commit
868c5ca1cb
4 changed files with 15 additions and 4 deletions
1
externals/CMakeLists.txt
vendored
1
externals/CMakeLists.txt
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue