summaryrefslogtreecommitdiff
path: root/Templates
diff options
context:
space:
mode:
authorFrancois Keith <francois.keith@cea.fr>2021-01-25 11:56:36 +0100
committerBrad King <brad.king@kitware.com>2021-01-25 12:32:30 -0500
commitee78391c093008d7ce9cbda4f5a7afe6d2816d41 (patch)
tree0b51372cf32ec6c8b32a7b75c585c3f622797f35 /Templates
parente38997d85a1a13c5a9061daad7a0ddab134f08e1 (diff)
downloadcmake-ee78391c093008d7ce9cbda4f5a7afe6d2816d41.tar.gz
CSharp: Add 'warnaserror:...' to v142 flag table for VS
This allows listing the warnings that must be flagged as errors. For example: target_compile_options(proj PRIVATE "/warnaserror:1998,4014")
Diffstat (limited to 'Templates')
-rw-r--r--Templates/MSBuild/FlagTables/v142_CSharp.json11
1 files changed, 11 insertions, 0 deletions
diff --git a/Templates/MSBuild/FlagTables/v142_CSharp.json b/Templates/MSBuild/FlagTables/v142_CSharp.json
index 9164849005..4dcea9de32 100644
--- a/Templates/MSBuild/FlagTables/v142_CSharp.json
+++ b/Templates/MSBuild/FlagTables/v142_CSharp.json
@@ -271,6 +271,17 @@
"flags": []
},
{
+ "name": "WarningsAsErrors",
+ "switch": "warnaserror:",
+ "comment": "",
+ "value": "",
+ "flags": [
+ "UserValue",
+ "UserRequired",
+ "CommaAppendable"
+ ]
+ },
+ {
"name": "WarningLevel",
"switch": "warn:0",
"comment": "",