diff --git a/ports/python2/007-fix-build-path.patch b/ports/python2/007-fix-build-path.patch new file mode 100644 index 0000000000..5dc4633e07 --- /dev/null +++ b/ports/python2/007-fix-build-path.patch @@ -0,0 +1,14 @@ +diff --git a/PCbuild/python.props b/PCbuild/python.props +index d2b1991..a22c054 100644 +--- a/PCbuild/python.props ++++ b/PCbuild/python.props +@@ -26,8 +26,7 @@ + $(PySourcePath)\ + + +- $(PySourcePath)PCBuild\ +- $(BuildPath)\$(ArchName)\ ++ $(PySourcePath)PCBuild\$(ArchName)\ + $(BuildPath)\ + + diff --git a/ports/python2/portfile.cmake b/ports/python2/portfile.cmake index c21b1f1e60..0c53ec1287 100644 --- a/ports/python2/portfile.cmake +++ b/ports/python2/portfile.cmake @@ -43,6 +43,7 @@ vcpkg_apply_patches( ${CMAKE_CURRENT_LIST_DIR}/002-build-msvc.patch ${CMAKE_CURRENT_LIST_DIR}/003-build-msvc.patch ${_PYTHON_PATCHES} + ${CMAKE_CURRENT_LIST_DIR}/007-fix-build-path.patch ) if (VCPKG_TARGET_ARCHITECTURE MATCHES "x86")