mirror of
https://github.com/kakwa/uts-server
synced 2024-12-04 23:15:54 +01:00
fix version of C standard to use
This commit is contained in:
parent
550f44d8c2
commit
665007b61f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user