Skip to content

Commit 7b74fbb

Browse files
committed
test: build testver in with the C90 standard
By building at least one test in C90 mode, we make sure the SDL headers are C90 compatible.
1 parent b5dd0ee commit 7b74fbb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,8 @@ add_sdl_test_executable(testpalette SOURCES testpalette.c)
405405
add_sdl_test_executable(testtimer NONINTERACTIVE NONINTERACTIVE_ARGS --no-interactive NONINTERACTIVE_TIMEOUT 60 SOURCES testtimer.c)
406406
add_sdl_test_executable(testurl SOURCES testurl.c)
407407
add_sdl_test_executable(testver NONINTERACTIVE NOTRACKMEM SOURCES testver.c)
408+
set_property(TARGET testver PROPERTY C_STANDARD 90)
409+
set_property(TARGET testver PROPERTY C_EXTENSIONS OFF)
408410
add_sdl_test_executable(testcamera MAIN_CALLBACKS SOURCES testcamera.c)
409411
add_sdl_test_executable(testclipboard MAIN_CALLBACKS SOURCES testclipboard.c ${icon_png_header} DEPENDS generate-icon_png_header)
410412
add_sdl_test_executable(testviewport NEEDS_RESOURCES TESTUTILS SOURCES testviewport.c)

0 commit comments

Comments
 (0)