From b2976adcdea7e8bd81b73747be8f06937de95c67 Mon Sep 17 00:00:00 2001 From: Dmitry Simonenko Date: Fri, 10 Feb 2017 13:49:21 +0300 Subject: [PATCH] soprano: set -std=gnu99 --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0c804f60..0c9c8f05 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,9 +6,9 @@ if ("${CMAKE_BUILD_TYPE}" STREQUAL "") set(CMAKE_BUILD_TYPE "Debug") 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")