diff --git a/CMakeLists.txt b/CMakeLists.txt index 1dc4ac9..8f2bef5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,7 +2,15 @@ cmake_minimum_required (VERSION 2.6) project (uts-server) include(ExternalProject) -set(VERSION 0.1.9) +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.10) 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 6dc2b8f..66ebae7 100644 --- a/ChangeLog.rst +++ b/ChangeLog.rst @@ -1,7 +1,7 @@ Changelogs ========== -0.1.9 +0.1.10 ----- * [fix ] point to upstream civetweb (forked civetweb now removed) @@ -9,6 +9,11 @@ Changelogs * [impr] add possibility to specify which tag used for civetweb bundling * [impr] use same compiler for uts-server and civetweb when bundling +0.1.9 +----- + +* [fix ] add explicit C standard (C99), fixes compilation with olders gcc/cmake + 0.1.8 -----