Skip to content

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kunitoki committed Dec 11, 2024
1 parent 023d125 commit 9b23133
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cmake/yup_dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,18 @@
#==============================================================================

function (_yup_fetch_sdl2)
set (SDL_STATIC_PIC ON)
set (SDL_SHARED OFF)
set (SDL_STATIC ON)
set (CMAKE_POSITION_INDEPENDENT_CODE ON)

FetchContent_Declare (sdl
GIT_REPOSITORY https://github.com/libsdl-org/SDL.git
GIT_TAG release-2.30.10
GIT_SHALLOW TRUE
GIT_PROGRESS TRUE)

set (SDL_SHARED OFF)
set (SDL_STATIC ON)
set (SDL_STATIC_PIC ON)

FetchContent_MakeAvailable (sdl)

set_target_properties (SDL2-static PROPERTIES FOLDER "Thirdparty")
Expand Down

0 comments on commit 9b23133

Please sign in to comment.