summaryrefslogtreecommitdiff
path: root/Modules/CMakeCSharpCompilerId.cs.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-07-15 10:44:16 -0400
committerBrad King <brad.king@kitware.com>2021-07-15 13:12:07 -0400
commit7adfd890fb8c44738d64f7ade5eec62f6bafb3df (patch)
treeacd8022016b5ae51ab8620697fbc589c87d4d4e2 /Modules/CMakeCSharpCompilerId.cs.in
parent63c1262375bc111ad191568d29dbb6d6b8bb34f4 (diff)
downloadcmake-7adfd890fb8c44738d64f7ade5eec62f6bafb3df.tar.gz
VS: Add CSharp VS 2022 compiler version and flag table v143
While the flag tables for C and C++ were generated from MSBuild `.xml` files, the CSharp flag tables were written by hand. Copy the `v142` flag table to use for the `v143` toolset.
Diffstat (limited to 'Modules/CMakeCSharpCompilerId.cs.in')
-rw-r--r--Modules/CMakeCSharpCompilerId.cs.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/CMakeCSharpCompilerId.cs.in b/Modules/CMakeCSharpCompilerId.cs.in
index 5afe08fd96..b43ec043ec 100644
--- a/Modules/CMakeCSharpCompilerId.cs.in
+++ b/Modules/CMakeCSharpCompilerId.cs.in
@@ -17,6 +17,8 @@ namespace CSharp
+ "Visual Studio"
#elif PlatformToolsetv142
+ "Visual Studio"
+#elif PlatformToolsetv143
+ + "Visual Studio"
#else
+ "unknown"
#endif
@@ -49,6 +51,8 @@ namespace CSharp
+ "2017"
#elif PlatformToolsetv142
+ "2019"
+#elif PlatformToolsetv143
+ + "2022"
#else
+ "9999"
#endif