From 2e9593d8a5915e02f2027cd019fe4ec734c7ae95 Mon Sep 17 00:00:00 2001 From: Dmitry Simonenko Date: Fri, 10 Feb 2017 13:48:31 +0300 Subject: [PATCH] machinarium: set -std=gnu99 --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8e8aa4a0..0476222e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,9 +10,9 @@ if ("${CMAKE_BUILD_TYPE}" STREQUAL "") endif() if ("${CMAKE_BUILD_TYPE}" STREQUAL "Release") - set(CMAKE_C_FLAGS "-Wall -Wextra -fPIC -g -O2") + set(CMAKE_C_FLAGS "-std=gnu99 -Wall -Wextra -fPIC -g -O2") elseif("${CMAKE_BUILD_TYPE}" STREQUAL "Debug") - set(CMAKE_C_FLAGS "-Wall -Wextra -fPIC -g -O0") + set(CMAKE_C_FLAGS "-std=gnu99 -Wall -Wextra -fPIC -g -O0") endif() include_directories("${PROJECT_SOURCE_DIR}/src")