From 4da7a3e44d2bbd7b21ae05c7b6604748e7227227 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Thu, 8 Dec 2022 16:31:24 +0100 Subject: wip2 --- src/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/CMakeLists.txt') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index bb05f29..58cbbf1 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,5 +1,5 @@ # Avoid C11 since it is not supported by the i386-mingw32 toolchain. -set(cflags ${cflags} -Wall -g3 -ffunction-sections -fdata-sections -pedantic -std=c99) +set(cflags ${cflags} -Wall -g3 -ffunction-sections -fdata-sections -pedantic) set(components building @@ -41,6 +41,8 @@ target_link_libraries(${PROJECT_NAME} PRIVATE system menu) foreach(c ${components}) add_subdirectory("${c}") target_compile_options(${c} PUBLIC ${cflags}) + target_compile_features(${c} PUBLIC c_std_99) + set_target_properties(${c} PROPERTIES C_STANDARD 99 C_EXTENSIONS OFF) endforeach() foreach(i ${interfaces}) -- cgit v1.2.3