Make C++20 the default
This commit is contained in:
parent
28c98e585b
commit
6ec0a26a51
|
@ -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)
|
||||
|
|
|
@ -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@"
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue