From: Bastian Dehn Date: Sat, 8 Feb 2025 08:40:23 +0000 (+0100) Subject: compile with gnu11 std X-Git-Tag: v1.0.33^2~6 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=cbbf6bcd4fceececccfd7dc94a50e865e6f9d83d;p=sane-kds-s2000w-net.git compile with gnu11 std --- diff --git a/CMakeLists.txt b/CMakeLists.txt index cc7185b..34cc6dd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,16 +7,16 @@ PROJECT("kds-s2000w-net") SET(CMAKE_BUILD_TYPE "Release" CACHE STRING "release") IF(CMAKE_BUILD_TYPE STREQUAL "Release") - SET(CMAKE_C_FLAGS "-fPIC -Wall -Werror" CACHE STRING "compiler flags" FORCE) + SET(CMAKE_C_FLAGS "-std=gnu11 -fPIC -Wall -Werror" CACHE STRING "compiler flags" FORCE) ENDIF() IF(CMAKE_BUILD_TYPE STREQUAL "Debug") - SET(CMAKE_C_FLAGS "-fPIC -Wall -g" CACHE STRING "debug compiler flags" FORCE) + SET(CMAKE_C_FLAGS "-std=gnu11 -fPIC -Wall -g" CACHE STRING "debug compiler flags" FORCE) ENDIF() IF (RUN_TESTS) SET(CMAKE_BUILD_TYPE "Debug" CACHE STRING "debug" FORCE) - SET(CMAKE_C_FLAGS "-fPIC \ + SET(CMAKE_C_FLAGS "-std=gnu11 -fPIC \ -fprofile-arcs \ -ftest-coverage \ -Wall \