mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 21:00:01 -05:00
Tests: Make CompileFeatures C dialect check consistent with impl
`Modules/CMakeCCompilerId.c.in` will report the C dialect as 11 whenever `__STDC_VERSION__` indicates *at least* C 11. Make the test consistent with this. We already do this for the C++ case. Fixes: #17740
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
|
||||
#if DEFAULT_C11
|
||||
#if __STDC_VERSION__ != 201112L
|
||||
#if __STDC_VERSION__ < 201112L
|
||||
#error Unexpected value for __STDC_VERSION__.
|
||||
#endif
|
||||
#elif DEFAULT_C99
|
||||
|
||||
Reference in New Issue
Block a user