From 07cfb47d33863be97fc33c35b62464137faffc44 Mon Sep 17 00:00:00 2001
From: Markus Blatt <markus@dr-blatt.de>
Date: Thu, 4 Jan 2018 15:27:24 +0100
Subject: [PATCH] Require CMake 3.1 when creating new modules with duneproject.

The script uses dune_enable_all_packages which has issues with older
CMake versions.
---
 bin/duneproject | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/bin/duneproject b/bin/duneproject
index 2eb34a5a4..203e3de08 100755
--- a/bin/duneproject
+++ b/bin/duneproject
@@ -384,7 +384,9 @@ R_DELIM
 ################## CMakeLists.txt ##################
 echo "- $PROJECT/CMakeLists.txt"
 cat> "$PROJECT/CMakeLists.txt" << M_DELIM
-cmake_minimum_required(VERSION 2.8.12)
+# We require version CMake version 3.1 to prevent issues
+# with dune_enable_all_packages and older CMake versions.
+cmake_minimum_required(VERSION 3.1)
 project($PROJECT CXX)
 
 if(NOT (dune-common_DIR OR dune-common_ROOT OR
-- 
GitLab