summaryrefslogtreecommitdiff
path: root/Modules/CMakeOBJCCompilerId.m.in
diff options
context:
space:
mode:
authorGregor Jasny <gjasny@googlemail.com>2021-06-11 13:40:57 +0200
committerGregor Jasny <gjasny@googlemail.com>2021-06-11 14:47:23 +0200
commite8dc95ae1ec0f0ded781b7b36f3117e499502273 (patch)
treef7bf2adadc2380d804903a2d3e2403d45826117e /Modules/CMakeOBJCCompilerId.m.in
parent2086b938a7b60ce07a28840240de82687b769575 (diff)
downloadcmake-e8dc95ae1ec0f0ded781b7b36f3117e499502273.tar.gz
ObjectiveC: Add C17 and C23 support
Issue: #22297
Diffstat (limited to 'Modules/CMakeOBJCCompilerId.m.in')
-rw-r--r--Modules/CMakeOBJCCompilerId.m.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/CMakeOBJCCompilerId.m.in b/Modules/CMakeOBJCCompilerId.m.in
index 2b8aa3020e..418fd4852f 100644
--- a/Modules/CMakeOBJCCompilerId.m.in
+++ b/Modules/CMakeOBJCCompilerId.m.in
@@ -27,6 +27,10 @@ char const* qnxnto = "INFO" ":" "qnxnto[]";
# else
# define C_DIALECT
# endif
+#elif __STDC_VERSION__ > 201710L
+# define C_DIALECT "23"
+#elif __STDC_VERSION__ >= 201710L
+# define C_DIALECT "17"
#elif __STDC_VERSION__ >= 201000L
# define C_DIALECT "11"
#elif __STDC_VERSION__ >= 199901L