From 9369f4267172220f4ce65fa3519a3350e6c7f4d1 Mon Sep 17 00:00:00 2001 From: Mateusz Paluszkiewicz Date: Wed, 29 Aug 2018 21:16:45 +0200 Subject: [PATCH] Fix build path for win-x86 platform --- ports/python2/007-fix-build-path.patch | 14 ++++++++++++++ ports/python2/portfile.cmake | 1 + 2 files changed, 15 insertions(+) create mode 100644 ports/python2/007-fix-build-path.patch 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")