Skip to content

Commit e918a76

Browse files
committed
require C99+ in tests' CFLAGS.
1 parent e454aea commit e918a76

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ set(RESOURCE_FILES
77

88
function(add_sdl_mixer_test_executable TARGET)
99
add_executable(${TARGET} ${ARGN})
10+
if("c_std_99" IN_LIST CMAKE_C_COMPILE_FEATURES)
11+
target_compile_features(${TARGET} PRIVATE c_std_99)
12+
endif()
1013
target_compile_definitions(${TARGET}
1114
PRIVATE
1215
$<TARGET_PROPERTY:${sdl3_mixer_target_name},COMPILE_DEFINITIONS>

0 commit comments

Comments
 (0)