diff options
author | Raul Tambre <raul@tambre.ee> | 2021-02-06 16:54:13 (GMT) |
---|---|---|
committer | Raul Tambre <raul@tambre.ee> | 2021-02-25 16:22:10 (GMT) |
commit | 93b7d3d29221f98388c7fa20568cd0b769a26774 (patch) | |
tree | 389c3bf8cd1e2a9cc03f431874d16448eee9fe1d /Modules/CMakeCCompilerId.c.in | |
parent | 58d9525233e4ffca1c7edc7a5978770a0e4ec36d (diff) | |
download | CMake-93b7d3d29221f98388c7fa20568cd0b769a26774.zip CMake-93b7d3d29221f98388c7fa20568cd0b769a26774.tar.gz CMake-93b7d3d29221f98388c7fa20568cd0b769a26774.tar.bz2 |
C17 support
Implements #17755.
Diffstat (limited to 'Modules/CMakeCCompilerId.c.in')
-rw-r--r-- | Modules/CMakeCCompilerId.c.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/CMakeCCompilerId.c.in b/Modules/CMakeCCompilerId.c.in index e6662b8..f1175f4 100644 --- a/Modules/CMakeCCompilerId.c.in +++ b/Modules/CMakeCCompilerId.c.in @@ -39,6 +39,8 @@ char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]"; # else # define C_DIALECT # endif +#elif __STDC_VERSION__ >= 201710L +# define C_DIALECT "17" #elif __STDC_VERSION__ >= 201000L # define C_DIALECT "11" #elif __STDC_VERSION__ >= 199901L |