diff options
Diffstat (limited to 'ports/python3')
| -rw-r--r-- | ports/python3/portfile.cmake | 5 | ||||
| -rw-r--r-- | ports/python3/vcpkg.json | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ports/python3/portfile.cmake b/ports/python3/portfile.cmake index 3a90a7913..d19f5552c 100644 --- a/ports/python3/portfile.cmake +++ b/ports/python3/portfile.cmake @@ -88,6 +88,11 @@ if(VCPKG_TARGET_IS_WINDOWS OR VCPKG_TARGET_IS_UWP) "/p:ForceImportBeforeCppTargets=${SOURCE_PATH}/PCbuild/python_vcpkg.props" ) endif() + string(REPLACE "\\" "" WindowsSDKVersion "$ENV{WindowsSDKVersion}") + list(APPEND OPTIONS + "/p:WindowsTargetPlatformVersion=${WindowsSDKVersion}" + "/p:DefaultWindowsSDKVersion=${WindowsSDKVersion}" + ) if(VCPKG_TARGET_IS_UWP) list(APPEND OPTIONS "/p:IncludeUwp=true") else() diff --git a/ports/python3/vcpkg.json b/ports/python3/vcpkg.json index f997398f8..5f7675cd0 100644 --- a/ports/python3/vcpkg.json +++ b/ports/python3/vcpkg.json @@ -1,7 +1,7 @@ { "name": "python3", "version-string": "3.9.2", - "port-version": 1, + "port-version": 2, "description": "The Python programming language", "homepage": "https://github.com/python/cpython", "supports": "!(arm | uwp)", |
