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
This commit is contained in:
Stefan Boeykens
2018-06-19 09:45:16 +02:00
parent 0ba1ac7df3
commit 58ce86d538
+5 -1
View File
@@ -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)