From 11ddcb2e913f24bc71fe81cfe5ec071837d49700 Mon Sep 17 00:00:00 2001 From: gabime Date: Sat, 22 Jul 2023 13:49:28 +0300 Subject: [PATCH] Require c++20 standard --- CMakeLists.txt | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 12b9f20d..20b21882 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,13 +25,7 @@ endif() # --------------------------------------------------------------------------------------- # Compiler config # --------------------------------------------------------------------------------------- -if(SPDLOG_USE_STD_FORMAT) - set(CMAKE_CXX_STANDARD 20) - set(CMAKE_CXX_STANDARD_REQUIRED ON) -elseif(NOT CMAKE_CXX_STANDARD) - set(CMAKE_CXX_STANDARD 11) - set(CMAKE_CXX_STANDARD_REQUIRED ON) -endif() +set(CMAKE_CXX_STANDARD 20) # make sure __cplusplus is defined when using msvc and enable parallel build if(MSVC)