diff --git a/CMakeLists.txt b/CMakeLists.txt index b70a1d8..267da7b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/serene/include/serene/config.h.in b/serene/include/serene/config.h.in index c151f63..151ca18 100644 --- a/serene/include/serene/config.h.in +++ b/serene/include/serene/config.h.in @@ -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@" diff --git a/serene/src/options.h b/serene/src/options.h index 7fcbc1e..5e0cbde 100644 --- a/serene/src/options.h +++ b/serene/src/options.h @@ -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;