From 1510af081a8c318952c995aa9f2196da990ebc22 Mon Sep 17 00:00:00 2001 From: Robert Schumacher Date: Thu, 27 Oct 2016 14:44:21 -0700 Subject: [PATCH] [boost] Patch for boost::range should not overwrite the downloaded patch --- ports/boost/portfile.cmake | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ports/boost/portfile.cmake b/ports/boost/portfile.cmake index 783606f72e..71fc8ba993 100644 --- a/ports/boost/portfile.cmake +++ b/ports/boost/portfile.cmake @@ -17,8 +17,9 @@ vcpkg_download_distfile(DIFF ) FILE(READ "${DIFF}" content) STRING(REGEX REPLACE "include/" "" content "${content}") -FILE(WRITE ${DIFF} "${content}") -vcpkg_apply_patches(SOURCE_PATH ${SOURCE_PATH} PATCHES ${DIFF}) +set(DIFF2 ${CURRENT_BUILDTREES_DIR}/src/boost-range-has_range_interator-hotfix_e7ebe14707130cda7b72e0ae5e93b17157fdb6a2.diff.fixed) +FILE(WRITE ${DIFF2} "${content}") +vcpkg_apply_patches(SOURCE_PATH ${SOURCE_PATH} PATCHES ${DIFF2}) if(NOT EXISTS ${SOURCE_PATH}/b2.exe) message(STATUS "Bootstrapping")