Make C++20 the default

This commit is contained in:
Sameer Rahmani 2023-07-29 15:11:52 +01:00
parent 28c98e585b
commit 6ec0a26a51
Signed by: lxsameer
GPG Key ID: B0A4AF28AB9FD90B
3 changed files with 8 additions and 1 deletions

View File

@ -31,7 +31,7 @@ cmake_policy(SET CMP0116 OLD)
# =============================================================================
# User Options
# =============================================================================
option(CPP_20_SUPPORT "C++20 Support" OFF)
option(CPP_20_SUPPORT "C++20 Support" ON)
option(SERENE_BUILD_TESTING "Enable tests" OFF)
option(SERENE_ENABLE_BUILDID "Enable build id." OFF)
option(SERENE_ENABLE_THINLTO "Enable ThisLTO." ON)

View File

@ -1,6 +1,11 @@
#ifndef CONFIG_H
#define CONFIG_H
#if __cplusplus < 202002L
# error "C++20 or better is required"
#endif
// the configured options and settings
#define SERENE_VERSION "@PROJECT_VERSION@"

View File

@ -43,6 +43,8 @@ enum class CompilationPhase {
/// different subsystem that might use it.
struct Options {
bool verbose = false;
/// Whether to use colors for the output or not
bool withColors = true;