mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-23 04:42:47 +00:00
197243140f
update SDL2 to v2.30.0
28 lines
736 B
CMake
28 lines
736 B
CMake
set(
|
|
internal_sdl2_options
|
|
|
|
"BUILD_SHARED_LIBS ${SRB2_CONFIG_SHARED_INTERNAL_LIBRARIES}"
|
|
"SDL_SHARED ${SRB2_CONFIG_SHARED_INTERNAL_LIBRARIES}"
|
|
"SDL_STATIC ${NOT_SRB2_CONFIG_SHARED_INTERNAL_LIBRARIES}"
|
|
"SDL_TEST OFF"
|
|
"SDL2_DISABLE_INSTALL ON"
|
|
)
|
|
|
|
if(${CMAKE_SYSTEM} MATCHES Windows)
|
|
list(APPEND internal_sdl2_options "SDL2_DISABLE_SDL2MAIN OFF")
|
|
endif()
|
|
if(${CMAKE_SYSTEM} MATCHES Darwin)
|
|
list(APPEND internal_sdl2_options "SDL2_DISABLE_SDL2MAIN OFF")
|
|
endif()
|
|
if(${CMAKE_SYSTEM} MATCHES Linux)
|
|
list(APPEND internal_sdl2_options "SDL2_DISABLE_SDL2MAIN ON")
|
|
endif()
|
|
|
|
CPMAddPackage(
|
|
NAME SDL2
|
|
VERSION 2.30.0
|
|
GITHUB_REPOSITORY "libsdl-org/SDL"
|
|
GIT_TAG release-2.30.0
|
|
EXCLUDE_FROM_ALL ON
|
|
OPTIONS ${internal_sdl2_options}
|
|
)
|