From e847c44e2658d8fc896e494dc2e916e1d0f2ba4d Mon Sep 17 00:00:00 2001 From: Sascha Willems Date: Fri, 24 Jan 2025 09:53:06 +0100 Subject: [PATCH] Update C++ requirement to C++20 --- CMakeLists.txt | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6bf6353e..6d8e3994 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -# Copyright (C) 2016-2023 by Sascha Willems - www.saschawillems.de +# Copyright (C) 2016-2025 by Sascha Willems - www.saschawillems.de # This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT) cmake_minimum_required(VERSION 3.4 FATAL_ERROR) @@ -137,7 +137,7 @@ endif() add_definitions(-D_CRT_SECURE_NO_WARNINGS) -set(CMAKE_CXX_STANDARD 14) +set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_STANDARD_REQUIRED ON) file(GLOB SOURCE *.cpp ) diff --git a/README.md b/README.md index 0b120890..245def37 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ git submodule update ## Building -The repository contains everything required to compile and build the examples on Windows, Linux, Android, iOS and macOS (using MoltenVK) using a C++ compiler that supports C++14. +The repository contains everything required to compile and build the examples on Windows, Linux, Android, iOS and macOS (using MoltenVK) using a C++ compiler that supports C++20. See [BUILD.md](BUILD.md) for details on how to build for the different platforms.