From 2f2274e959f3452e847800d7496458360f21c341 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Mon, 5 Feb 2024 17:19:22 +0100 Subject: Updated C++ standard to C++17 C++17 should be universal enough by now. This raises the minimum CMake to 3.8, which should also pose no problem since Ubuntu 18.04 already shipped with CMake 3.10. C++17's 'if' initialization statement is now used in an efficient implementation of 'join' for vector, found on StackOverflow. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 430fdbc0..c9798acd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -CMAKE_MINIMUM_REQUIRED(VERSION 3.1...3.27) +CMAKE_MINIMUM_REQUIRED(VERSION 3.8...3.27) PROJECT(MANA) @@ -6,7 +6,7 @@ IF (NOT VERSION) SET(VERSION 0.6.1) ENDIF() -set (CMAKE_CXX_STANDARD 11) +set (CMAKE_CXX_STANDARD 17) STRING(REPLACE "." " " _VERSION ${VERSION}) SEPARATE_ARGUMENTS(_VERSION) -- cgit v1.2.3-70-g09d2