summaryrefslogtreecommitdiffstats
path: root/Templates/MSBuild
diff options
context:
space:
mode:
authorFrancois Keith <francois.keith@cea.fr>2021-01-25 10:56:36 (GMT)
committerBrad King <brad.king@kitware.com>2021-01-25 17:32:30 (GMT)
commitee78391c093008d7ce9cbda4f5a7afe6d2816d41 (patch)
tree0b51372cf32ec6c8b32a7b75c585c3f622797f35 /Templates/MSBuild
parente38997d85a1a13c5a9061daad7a0ddab134f08e1 (diff)
downloadCMake-ee78391c093008d7ce9cbda4f5a7afe6d2816d41.zip
CMake-ee78391c093008d7ce9cbda4f5a7afe6d2816d41.tar.gz
CMake-ee78391c093008d7ce9cbda4f5a7afe6d2816d41.tar.bz2
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/MSBuild')
-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 9164849..4dcea9d 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": "",