diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-02-05 17:19:22 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-02-05 17:22:25 +0100 |
commit | 2f2274e959f3452e847800d7496458360f21c341 (patch) | |
tree | e263a33f85bb95bbb56f1f661adf14228305bafb /CMakeLists.txt | |
parent | 3405b046701e9c08972c1e622259164fc88ac487 (diff) | |
download | mana-2f2274e959f3452e847800d7496458360f21c341.tar.gz mana-2f2274e959f3452e847800d7496458360f21c341.tar.bz2 mana-2f2274e959f3452e847800d7496458360f21c341.tar.xz mana-2f2274e959f3452e847800d7496458360f21c341.zip |
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<string>, found on StackOverflow.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
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) |