summaryrefslogtreecommitdiffstats
path: root/PCbuild
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@python.org>2021-06-30 19:06:06 (GMT)
committerGitHub <noreply@github.com>2021-06-30 19:06:06 (GMT)
commitd3a95c1b6eacbbbd92c294744e7ed41932f3f63e (patch)
tree1a07f5abd095a8dfb5dc8cf7a782c0b2d3caaa63 /PCbuild
parent95919b0d2744adb87acf696ae1de905cf02a95a6 (diff)
downloadcpython-d3a95c1b6eacbbbd92c294744e7ed41932f3f63e.zip
cpython-d3a95c1b6eacbbbd92c294744e7ed41932f3f63e.tar.gz
cpython-d3a95c1b6eacbbbd92c294744e7ed41932f3f63e.tar.bz2
bpo-44535: Enable building with Visual Studio 2022 on Windows (GH-26962)
Diffstat (limited to 'PCbuild')
-rw-r--r--PCbuild/python.props1
1 files changed, 1 insertions, 0 deletions
diff --git a/PCbuild/python.props b/PCbuild/python.props
index 4a56d50..6062510 100644
--- a/PCbuild/python.props
+++ b/PCbuild/python.props
@@ -11,6 +11,7 @@
We set BasePlatformToolset for ICC's benefit, it's otherwise ignored.
-->
+ <BasePlatformToolset Condition="'$(BasePlatformToolset)' == '' and ('$(MSBuildToolsVersion)' == '17.0' or '$(VisualStudioVersion)' == '17.0')">v142</BasePlatformToolset>
<BasePlatformToolset Condition="'$(BasePlatformToolset)' == '' and ('$(MSBuildToolsVersion)' == '16.0' or '$(VisualStudioVersion)' == '16.0')">v142</BasePlatformToolset>
<BasePlatformToolset Condition="'$(BasePlatformToolset)' == '' and ('$(MSBuildToolsVersion)' == '15.0' or '$(VisualStudioVersion)' == '15.0')">v141</BasePlatformToolset>
<BasePlatformToolset Condition="'$(BasePlatformToolset)' == '' and '$(VCTargetsPath14)' != ''">v140</BasePlatformToolset>