machinarium: set -std=gnu99

This commit is contained in:
Dmitry Simonenko 2017-02-10 13:48:31 +03:00
parent cc6518f8e8
commit 2e9593d8a5
1 changed files with 2 additions and 2 deletions

View File

@ -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")