|
|
|
|
@ -215,6 +215,7 @@ else()
|
|
|
|
|
elseif(TARGET SDL2::SDL2-static) |
|
|
|
|
# On some distros, such as vitasdk, only the SDL2::SDL2-static target is available. |
|
|
|
|
# Alias to SDL2::SDL2 because some finder scripts may refer to SDL2::SDL2. |
|
|
|
|
set_target_properties(SDL2::SDL2-static PROPERTIES IMPORTED_GLOBAL TRUE) |
|
|
|
|
add_library(SDL2::SDL2 ALIAS SDL2::SDL2-static) |
|
|
|
|
set(SDL2_MAIN SDL2::SDL2main) |
|
|
|
|
else() |
|
|
|
|
|