SDL_test: build SDL3_test in C99 mode

This commit is contained in:
Anonymous Maarten 2026-04-26 21:42:22 +02:00
parent bf43bbae31
commit d2117c4d03

View file

@ -542,6 +542,9 @@ if(SDL_TEST_LIBRARY)
add_library(SDL3::SDL3_test ALIAS SDL3_test)
SDL_AddCommonCompilerFlags(SDL3_test)
target_compile_definitions(SDL3_test PRIVATE "$<$<CONFIG:Debug>:DEBUG>")
if("c_std_99" IN_LIST CMAKE_C_COMPILE_FEATURES)
target_compile_features(SDL3_test PRIVATE c_std_99)
endif()
endif()
# Make sure SDL3::SDL3 always exists