summaryrefslogtreecommitdiff
path: root/Modules/CMakeCCompilerId.c.in
diff options
context:
space:
mode:
authorRaul Tambre <raul@tambre.ee>2021-02-06 18:54:13 +0200
committerRaul Tambre <raul@tambre.ee>2021-02-25 18:22:10 +0200
commit93b7d3d29221f98388c7fa20568cd0b769a26774 (patch)
tree389c3bf8cd1e2a9cc03f431874d16448eee9fe1d /Modules/CMakeCCompilerId.c.in
parent58d9525233e4ffca1c7edc7a5978770a0e4ec36d (diff)
downloadcmake-93b7d3d29221f98388c7fa20568cd0b769a26774.tar.gz
C17 support
Implements #17755.
Diffstat (limited to 'Modules/CMakeCCompilerId.c.in')
-rw-r--r--Modules/CMakeCCompilerId.c.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/CMakeCCompilerId.c.in b/Modules/CMakeCCompilerId.c.in
index e6662b833a..f1175f4e9f 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