Skip to content

Commit 89fff91

Browse files
committed
build FEATURE use GNU99 standard
Also, support cmake pre 3.1.
1 parent faa04b3 commit 89fff91

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ if(NOT CMAKE_BUILD_TYPE)
3131
set(CMAKE_BUILD_TYPE Debug)
3232
endif()
3333

34-
set(CMAKE_C_STANDARD 11)
35-
set(CMAKE_CXX_EXTENSIONS ON)
36-
add_compile_options(-Wall -Wextra -fvisibility=hidden)
34+
add_compile_options(-Wall -Wextra -fvisibility=hidden -std=gnu99)
3735
set(CMAKE_C_FLAGS_PACKAGE "-g -O2 -DNDEBUG")
3836

3937
# Version of the project

0 commit comments

Comments
 (0)