C++26: Support detection as the default standard

This was missed in commit f808d8afb9 (CMake: Support upcoming C++26
language level, 2022-08-19, v3.25.0-rc1~218^2).
This commit is contained in:
Raul Tambre
2024-04-15 17:38:07 +03:00
committed by Brad King
parent dcbc2ef00d
commit 2038f2c2b1
7 changed files with 20 additions and 7 deletions

View File

@@ -89,7 +89,9 @@ char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
#endif
const char* info_language_standard_default = "INFO" ":" "standard_default["
#if CXX_STD > CXX_STD_20
#if CXX_STD > CXX_STD_23
"26"
#elif CXX_STD > CXX_STD_20
"23"
#elif CXX_STD > CXX_STD_17
"20"