cmake+xcode: only create SDL2::SDL2main target when it does not exist again
parent
fdef96e233
commit
cbb1cf0c93
|
@ -58,10 +58,12 @@ if(NOT TARGET SDL2::SDL2)
|
||||||
COMPATIBLE_INTERFACE_BOOL "SDL2_SHARED"
|
COMPATIBLE_INTERFACE_BOOL "SDL2_SHARED"
|
||||||
INTERFACE_SDL2_SHARED "ON"
|
INTERFACE_SDL2_SHARED "ON"
|
||||||
)
|
)
|
||||||
set(SDL2_SDL2_FOUND TRUE)
|
|
||||||
endif()
|
endif()
|
||||||
|
set(SDL2_SDL2_FOUND TRUE)
|
||||||
|
|
||||||
|
if(NOT TARGET SDL2::SDL2main)
|
||||||
add_library(SDL2::SDL2main INTERFACE IMPORTED)
|
add_library(SDL2::SDL2main INTERFACE IMPORTED)
|
||||||
|
endif()
|
||||||
set(SDL2_SDL2main_FOUND TRUE)
|
set(SDL2_SDL2main_FOUND TRUE)
|
||||||
|
|
||||||
check_required_components(SDL2)
|
check_required_components(SDL2)
|
||||||
|
|
Loading…
Reference in New Issue