From: Bastian Dehn Date: Sun, 9 Feb 2025 07:57:39 +0000 (+0100) Subject: add gnu99 std X-Git-Tag: 1.3.5^2~12 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=877683639557451c8a68ff777ebf2c47a0651c3e;p=feierabend.git add gnu99 std --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 203925c..b22c3e5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,9 @@ CMAKE_MINIMUM_REQUIRED(VERSION 3.25.1) SET(CMAKE_BUILD_TYPE "Debug" CACHE STRING "build type") IF(${CMAKE_BUILD_TYPE} STREQUAL "Debug") - SET(CMAKE_C_FLAGS "-Wall -g -fsanitize=address") + SET(CMAKE_C_FLAGS "-std=gnu99 -Wall -g -fsanitize=address") +else() + SET(CMAKE_C_FLAGS "-std=gnu99 -Werror") ENDIF() MESSAGE(STATUS "CMAKE_C_FLAGS: ${CMAKE_C_FLAGS}")