[boost] Patch for boost::range should not overwrite the downloaded patch

This commit is contained in:
Robert Schumacher 2016-10-27 14:44:21 -07:00
Родитель 4681f3de60
Коммит 1510af081a
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -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")