diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-06-30 19:31:04 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-30 19:31:04 (GMT) |
commit | 67e394562d67cbcd0ac8114e5439494e7645b8f5 (patch) | |
tree | a0cc0c6fa82ffcaf2d51746efdaea5f8da9f6f7f /PCbuild | |
parent | 863e3d5c7e037b24b8294b041ed7686b522973d8 (diff) | |
download | cpython-67e394562d67cbcd0ac8114e5439494e7645b8f5.zip cpython-67e394562d67cbcd0ac8114e5439494e7645b8f5.tar.gz cpython-67e394562d67cbcd0ac8114e5439494e7645b8f5.tar.bz2 |
bpo-44535: Enable building with Visual Studio 2022 on Windows (GH-26962)
(cherry picked from commit d3a95c1b6eacbbbd92c294744e7ed41932f3f63e)
Co-authored-by: Steve Dower <steve.dower@python.org>
Diffstat (limited to 'PCbuild')
-rw-r--r-- | PCbuild/python.props | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/PCbuild/python.props b/PCbuild/python.props index 419d5eb..acbf4e0 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> |