aboutsummaryrefslogtreecommitdiff
path: root/ports/python2
diff options
context:
space:
mode:
authorMateusz Paluszkiewicz <theaifam5@gmail.com>2018-08-29 21:16:45 +0200
committerMateusz Paluszkiewicz <theaifam5@gmail.com>2018-08-29 21:18:20 +0200
commit9369f4267172220f4ce65fa3519a3350e6c7f4d1 (patch)
treed1963e54186750ab235144816febedbc8c174d5b /ports/python2
parent1265bd4c3f41e2fc65d94b86103f8a11ab8bb503 (diff)
downloadvcpkg-9369f4267172220f4ce65fa3519a3350e6c7f4d1.tar.gz
vcpkg-9369f4267172220f4ce65fa3519a3350e6c7f4d1.zip
Fix build path for win-x86 platform
Diffstat (limited to 'ports/python2')
-rw-r--r--ports/python2/007-fix-build-path.patch14
-rw-r--r--ports/python2/portfile.cmake1
2 files changed, 15 insertions, 0 deletions
diff --git a/ports/python2/007-fix-build-path.patch b/ports/python2/007-fix-build-path.patch
new file mode 100644
index 000000000..5dc4633e0
--- /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 Condition="!HasTrailingSlash($(PySourcePath))">$(PySourcePath)\</PySourcePath>
+
+ <!-- Directory where build outputs are put -->
+- <BuildPath Condition="'$(BuildPath)' == ''">$(PySourcePath)PCBuild\</BuildPath>
+- <BuildPath Condition="'$(ArchName)' != 'win32'">$(BuildPath)\$(ArchName)\</BuildPath>
++ <BuildPath Condition="'$(BuildPath)' == ''">$(PySourcePath)PCBuild\$(ArchName)\</BuildPath>
+ <BuildPath Condition="!HasTrailingSlash($(BuildPath))">$(BuildPath)\</BuildPath>
+
+ <!-- Directories of external projects. tcltk is handled in tcltk.props -->
diff --git a/ports/python2/portfile.cmake b/ports/python2/portfile.cmake
index c21b1f1e6..0c53ec128 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")