From 665007b61f3c7610e794a37162dfdbdcf1021529 Mon Sep 17 00:00:00 2001 From: "jenkins@kakwa.fr" Date: Mon, 24 Jul 2017 17:53:14 -0400 Subject: [PATCH 1/2] fix version of C standard to use --- CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f5c4826..43dcdd9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) From 2b9eabb9d38f1b77e1735d8f46873222b1c4d7eb Mon Sep 17 00:00:00 2001 From: "jenkins@kakwa.fr" Date: Mon, 24 Jul 2017 17:56:42 -0400 Subject: [PATCH 2/2] version bump+changelog --- CMakeLists.txt | 2 +- ChangeLog.rst | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 43dcdd9..4e4b504 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,7 +10,7 @@ else () set (CMAKE_C_STANDARD 99) endif () -set(VERSION 0.1.8) +set(VERSION 0.1.9) option(DEBUG "compile with debug symbol" OFF) option(BUNDLE_CIVETWEB "bundle civetweb with uts-server" OFF) diff --git a/ChangeLog.rst b/ChangeLog.rst index 422cf14..47f3621 100644 --- a/ChangeLog.rst +++ b/ChangeLog.rst @@ -1,6 +1,11 @@ Changelogs ========== +0.1.9 +----- + +* [fix ] add explicit C standard (C99), fixes compilation with olders gcc/cmake + 0.1.8 -----