1
0
mirror of https://github.com/kakwa/uts-server synced 2024-12-04 15:05:54 +01:00

fix version of C standard to use

This commit is contained in:
jenkins@kakwa.fr 2017-07-24 17:53:14 -04:00
parent 550f44d8c2
commit 665007b61f

View File

@ -2,6 +2,14 @@ cmake_minimum_required (VERSION 2.6)
project (uts-server)
include(ExternalProject)
if (CMAKE_VERSION VERSION_LESS "3.1")
if (CMAKE_C_COMPILER_ID STREQUAL "GNU")
set (CMAKE_C_FLAGS "--std=gnu99 ${CMAKE_C_FLAGS}")
endif ()
else ()
set (CMAKE_C_STANDARD 99)
endif ()
set(VERSION 0.1.8)
option(DEBUG "compile with debug symbol" OFF)