Commit d863ce8f authored by Steffen Müthing's avatar Steffen Müthing

Merge branch 'feature/fix-issue-22' into 'master'

[bugfix] Bump minimum required cmake version to 2.8.12

target_compile_definitions is only available in that version. On the dev
meeting 2015 it was decided to gradually bump to 3.0, so we are fine
with 2.8.12.

This fixes #22.

See merge request !57
parents 0541567a 5c44c86e
......@@ -2,7 +2,7 @@
project("dune-common" C CXX)
# general stuff
cmake_minimum_required(VERSION 2.8.6)
cmake_minimum_required(VERSION 2.8.12)
# make sure our own modules are found
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake/modules")
......
......@@ -466,7 +466,7 @@ def init_cmake_module(module_name):
return''.join(['# set up project\n',
'project("'+module_name+'" C CXX)\n\n#circumvent not building docs\nset(BUILD_DOCS 1)\n\n',
'# general stuff\n',
'cmake_minimum_required(VERSION 2.8.6)\n\n',
'cmake_minimum_required(VERSION 2.8.12)\n\n',
'#find dune-common and set the module path\n',
'find_package(dune-common)\n'
'list(APPEND CMAKE_MODULE_PATH ${dune-common_MODULE_PATH}\n'
......
......@@ -186,7 +186,7 @@ ENABLE_ALL="$5"
while [ "$DATACORRECT" != "y" -a "$DATACORRECT" != "Y" ]; do
# Track minimum CMake version
CMAKE_MINIMUM_REQUIRED=2.8.6
CMAKE_MINIMUM_REQUIRED=2.8.12
while [ -z $PROJECT ]; do
read -p "1) Name of your new Project? (e.g.: dune-grid): " PROJECT
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment