Skip to content

Commit

Permalink
Enable SDL timers in build.
Browse files Browse the repository at this point in the history
Apparently this is important and shouldn't have been optional.
  • Loading branch information
Themaister committed Jan 17, 2024
1 parent ac5636a commit 8bc325f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion third_party/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ target_link_libraries(granite-volk PRIVATE granite-volk-headers)
if ((NOT ANDROID) AND (${GRANITE_PLATFORM} MATCHES "SDL"))
set(SDL_SHARED OFF CACHE BOOL "" FORCE)
set(SDL_STATIC ON CACHE BOOL "" FORCE)
set(SDL_TIMERS ON CACHE BOOL "" FORCE)
set(SDL_TEST_LIBRARY OFF CACHE BOOL "" FORCE)
set(SDL_DISABLE_INSTALL ON CACHE BOOL "" FORCE)
# Disable everything we don't care about.
Expand All @@ -109,7 +110,6 @@ if ((NOT ANDROID) AND (${GRANITE_PLATFORM} MATCHES "SDL"))
set(SDL_RENDER OFF CACHE BOOL "" FORCE)
set(SDL_HAPTIC OFF CACHE BOOL "" FORCE)
set(SDL_POWER OFF CACHE BOOL "" FORCE)
set(SDL_TIMERS OFF CACHE BOOL "" FORCE)
set(SDL_FILE OFF CACHE BOOL "" FORCE)
set(SDL_CPUINFO OFF CACHE BOOL "" FORCE)
set(SDL_FILESYSTEM OFF CACHE BOOL "" FORCE)
Expand Down

0 comments on commit 8bc325f

Please sign in to comment.