Require c++20 standard

This commit is contained in:
gabime 2023-07-22 13:49:28 +03:00
parent f530b2dbaa
commit 11ddcb2e91

View File

@ -25,13 +25,7 @@ endif()
# --------------------------------------------------------------------------------------- # ---------------------------------------------------------------------------------------
# Compiler config # Compiler config
# --------------------------------------------------------------------------------------- # ---------------------------------------------------------------------------------------
if(SPDLOG_USE_STD_FORMAT) set(CMAKE_CXX_STANDARD 20)
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()
# make sure __cplusplus is defined when using msvc and enable parallel build # make sure __cplusplus is defined when using msvc and enable parallel build
if(MSVC) if(MSVC)