aboutsummaryrefslogtreecommitdiff
path: root/ports/python3/portfile.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'ports/python3/portfile.cmake')
-rw-r--r--ports/python3/portfile.cmake5
1 files changed, 5 insertions, 0 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()