From 58ce86d538971fc1815d56368d7077aa85e0592c Mon Sep 17 00:00:00 2001 From: Stefan Boeykens Date: Tue, 19 Jun 2018 09:45:16 +0200 Subject: [PATCH] Pushing cmake to enforce C++ 11 To be able to compile with a recent ICU version (for Unicode) C++11 is required. This enforces this in the main CMakeLists.txt --- cmake/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index b157cd56eb..a63ed10bb5 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -17,7 +17,11 @@ # # ################################################################################ -cmake_minimum_required (VERSION 2.8.5) +# cmake_minimum_required (VERSION 2.8.5) + +cmake_minimum_required(VERSION 3.1.3) +set(CMAKE_CXX_STANDARD 11) +set(CMAKE_CXX_STANDARD_REQUIRED ON) # not necessary, but encouraged project (IfcOpenShell)