From 2c071e2e048dd4c6920a08d47d91ab3dae655082 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 19 May 2026 18:40:42 +0200 Subject: cmake: set the required C++ standard Not sure if it was the removal of common.cmake or the CMake version upgrade, but VS 2022 builds on CI started failing with standard mismatch errors. --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a7a7e02..d75fbfb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,6 +6,11 @@ cmake_minimum_required(VERSION 3.25) project(math_server CXX) enable_testing() +# Required at least for , etc. +# Plus, quite frankly, I think it is mature enough. +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + # AppVeyor builds w/ Visual Studio 2017 bombard me with stupid warnings otherwise: if(MSVC_VERSION GREATER_EQUAL "1910" AND MSVC_VERSION LESS "1920") add_definitions(/D_SILENCE_CXX17_ALLOCATOR_VOID_DEPRECATION_WARNING) -- cgit v1.3