summaryrefslogtreecommitdiffstats
path: root/Templates/MSBuild
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-09-28 19:21:17 (GMT)
committerBrad King <brad.king@kitware.com>2020-09-28 19:51:01 (GMT)
commitb11c72367807bc8d3b84e9161e56f24a0f5d2ea3 (patch)
tree17b315420b7fbf9a2c5134d32b7d386d484801ee /Templates/MSBuild
parent177fc020731bcee747295573c92cd0f7ca200e53 (diff)
downloadCMake-b11c72367807bc8d3b84e9161e56f24a0f5d2ea3.zip
CMake-b11c72367807bc8d3b84e9161e56f24a0f5d2ea3.tar.gz
CMake-b11c72367807bc8d3b84e9161e56f24a0f5d2ea3.tar.bz2
VS: Populate `std:c{11,17}` flag table entries for v142
The `-std:c11` option added by commit f7347f28c7 (MSVC: Record support for C11 and c_restrict, 2020-08-09, v3.18.2~9^2) needs this flag table entry to map in the VS IDE properly. Issue: #21069
Diffstat (limited to 'Templates/MSBuild')
-rw-r--r--Templates/MSBuild/FlagTables/v142_CL.json14
1 files changed, 14 insertions, 0 deletions
diff --git a/Templates/MSBuild/FlagTables/v142_CL.json b/Templates/MSBuild/FlagTables/v142_CL.json
index 95b9d14..7c2d291 100644
--- a/Templates/MSBuild/FlagTables/v142_CL.json
+++ b/Templates/MSBuild/FlagTables/v142_CL.json
@@ -455,6 +455,20 @@
"flags": []
},
{
+ "name": "LanguageStandard_C",
+ "switch": "std:c11",
+ "comment": "ISO C11 Standard",
+ "value": "stdc11",
+ "flags": []
+ },
+ {
+ "name": "LanguageStandard_C",
+ "switch": "std:c17",
+ "comment": "ISO C17 (2018) Standard",
+ "value": "stdc17",
+ "flags": []
+ },
+ {
"name": "PrecompiledHeader",
"switch": "Yc",
"comment": "Create",