project: build in (at least) c99 mode

main
Anonymous Maarten 2023-07-22 21:21:28 +02:00 committed by Ryan C. Gordon
parent 8105f1d5b5
commit d5479d7b81
1 changed files with 2 additions and 0 deletions

View File

@ -381,12 +381,14 @@ if(SDL_SHARED)
add_library(SDL3-shared SHARED)
add_library(SDL3::SDL3-shared ALIAS SDL3-shared)
SDL_AddCommonCompilerFlags(SDL3-shared)
target_compile_features(SDL3-shared PRIVATE c_std_99)
endif()
if(SDL_STATIC)
add_library(SDL3-static STATIC)
add_library(SDL3::SDL3-static ALIAS SDL3-static)
SDL_AddCommonCompilerFlags(SDL3-static)
target_compile_features(SDL3-static PRIVATE c_std_99)
endif()
if(SDL_TEST)