Skip to content
Snippets Groups Projects
Commit 8b9ddf01 authored by Markus Blatt's avatar Markus Blatt
Browse files

Some of the macros used are only available for CMake 2.8.6 and higher. Bumped...

Some of the macros used are only available for CMake 2.8.6 and higher. Bumped required CMake version

[[Imported from SVN: r7044]]
parent 857c76bf
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
project("dune-common" C CXX)
# general stuff
cmake_minimum_required(VERSION 2.8)
cmake_minimum_required(VERSION 2.8.6)
message("CMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}|")
# make sure our own modules are found
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/modules")
......
......@@ -705,7 +705,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)\n\n',
'cmake_minimum_required(VERSION 2.8.6)\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'
......
......@@ -465,7 +465,7 @@ M_DELIM
################## CMakeLists.txt ##################
echo " - $PROJECT/CMakeLists.txt"
cat> "$PROJECT/CMakeLists.txt" << M_DELIM
cmake_minimum_required(VERSION 2.8)
cmake_minimum_required(VERSION 2.8.6)
project($PROJECT CXX)
#find dune-common and set the module path
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment