From 8c7e2707b8326b0de8e68ff1d6af807409c6eb69 Mon Sep 17 00:00:00 2001 From: Alexander Kurbatov Date: Mon, 1 Jan 2024 18:07:03 +0300 Subject: [PATCH] feat: Switch to C++17 As cpp-sc2 uses it now. Signed-off-by: Alexander Kurbatov --- CMakeLists.txt | 5 +++-- README.md | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c30b639..efcd8ef 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,8 +7,9 @@ include(FetchContent) # Specify output directories. set(EXECUTABLE_OUTPUT_PATH "${PROJECT_BINARY_DIR}/bin") -# Build with c++14 support, required by sc2api. -set(CMAKE_CXX_STANDARD 14) +# Build with c++17 support, required by sc2api. +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) if (MSVC) # Setup MSVC parallelized builds diff --git a/README.md b/README.md index 958d449..6161de7 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,7 @@ $ build/bin/CommandCenter Ladder2019Season3/AcropolisLE.SC2Map ``` ## Linux -* Install 'gcc-c++' with C++14 support and the 'make' utility. +* Install 'gcc-c++' with C++17 support and the 'make' utility. * Install [CMake](https://cmake.org/download/). ```bash