mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-30 09:45:36 +00:00
SDL_test: build SDL3_test in C99 mode
This commit is contained in:
parent
bf43bbae31
commit
d2117c4d03
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue