diff options
author | Gregor Jasny <gjasny@googlemail.com> | 2021-06-11 13:40:57 +0200 |
---|---|---|
committer | Gregor Jasny <gjasny@googlemail.com> | 2021-06-11 14:47:23 +0200 |
commit | e8dc95ae1ec0f0ded781b7b36f3117e499502273 (patch) | |
tree | f7bf2adadc2380d804903a2d3e2403d45826117e /Modules/CMakeOBJCCompilerId.m.in | |
parent | 2086b938a7b60ce07a28840240de82687b769575 (diff) | |
download | cmake-e8dc95ae1ec0f0ded781b7b36f3117e499502273.tar.gz |
ObjectiveC: Add C17 and C23 support
Issue: #22297
Diffstat (limited to 'Modules/CMakeOBJCCompilerId.m.in')
-rw-r--r-- | Modules/CMakeOBJCCompilerId.m.in | 4 |
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 |