diff options
author | Gregor Jasny <gjasny@googlemail.com> | 2021-06-11 11:40:57 (GMT) |
---|---|---|
committer | Gregor Jasny <gjasny@googlemail.com> | 2021-06-11 12:47:23 (GMT) |
commit | e8dc95ae1ec0f0ded781b7b36f3117e499502273 (patch) | |
tree | f7bf2adadc2380d804903a2d3e2403d45826117e /Modules/CMakeOBJCCompilerId.m.in | |
parent | 2086b938a7b60ce07a28840240de82687b769575 (diff) | |
download | CMake-e8dc95ae1ec0f0ded781b7b36f3117e499502273.zip CMake-e8dc95ae1ec0f0ded781b7b36f3117e499502273.tar.gz CMake-e8dc95ae1ec0f0ded781b7b36f3117e499502273.tar.bz2 |
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 2b8aa30..418fd48 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 |