From: Christoph Junghans Date: Sat, 12 Aug 2017 16:36:24 +0000 (-0600) Subject: cmake: require c99 standard X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4802fe95376cc00c559db013f93e8aabdf046467;p=platform%2Fupstream%2Flibaec.git cmake: require c99 standard Some files, e.g. encode_accessors.c, use loop initial declarations that are only allowed in C99 mode. Newer compilers enable that mode automatically, but olders might fail. CMAKE_C_STANDARD got add in CMake-3.1, so let's increase the minimal version by 0.1. Signed-off-by: Christoph Junghans --- diff --git a/CMakeLists.txt b/CMakeLists.txt index e8b0e93..22f24e0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,5 @@ -cmake_minimum_required(VERSION 3.0.0) +cmake_minimum_required(VERSION 3.1) +set(CMAKE_C_STANDARD 99) include(CheckIncludeFiles) include(TestBigEndian) include(CheckCSourceCompiles)