cmake: require the declared cxx standard

This commit is contained in:
surtur 2021-11-18 19:49:15 +01:00
parent 8d8129dc40
commit 9fd35eee93
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

View File

@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 3.20)
project(fortuna LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
if(CMAKE_BUILD_TYPE MATCHES "Debug")
# Produce debugging information in the operating system's native format.