Skip to content

Commit 9c29d1e

Browse files
committed
cmake, tests: require c99
1 parent 9cb72c2 commit 9c29d1e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

test/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ function(add_sdl_image_test_executable TARGET)
4141
$<TARGET_PROPERTY:${sdl3_image_target_name},COMPILE_DEFINITIONS>
4242
)
4343
sdl_add_warning_options(${TARGET} WARNING_AS_ERROR ${SDLIMAGE_WERROR})
44+
if("c_std_99" IN_LIST CMAKE_C_COMPILE_FEATURES)
45+
target_compile_features(${TARGET} PRIVATE c_std_99)
46+
endif()
4447
target_link_libraries(${TARGET} PRIVATE SDL3_image::SDL3_image SDL3::SDL3_test SDL3::SDL3)
4548

4649
if(SDLIMAGE_TESTS_INSTALL)

0 commit comments

Comments
 (0)