summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Junghans <junghans@votca.org>2017-08-12 10:36:24 -0600
committerMathis Rosenhauer <rosenhauer@dkrz.de>2017-08-12 10:36:24 -0600
commit4802fe95376cc00c559db013f93e8aabdf046467 (patch)
treecc3184ce8806ec2b55543da65c0ed3c16a01518a
parentd808db1e1276f6c23feccdcefd56f7e38e2d7c9e (diff)
downloadlibaec-4802fe95376cc00c559db013f93e8aabdf046467.tar.gz
libaec-4802fe95376cc00c559db013f93e8aabdf046467.tar.bz2
libaec-4802fe95376cc00c559db013f93e8aabdf046467.zip
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 <junghans@votca.org>
-rw-r--r--CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
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)