From 111d10df52d3b6631edc213374701811f42786c0 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 12 Jun 2019 15:49:11 +0800 Subject: [PATCH] cmake: move boost patch to cmake/modules as it's used by cmake only Signed-off-by: Kefu Chai --- cmake/modules/BuildBoost.cmake | 2 +- .../modules}/boost_context_asm_arm_syntax_unified.patch | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename {patches => cmake/modules}/boost_context_asm_arm_syntax_unified.patch (100%) diff --git a/cmake/modules/BuildBoost.cmake b/cmake/modules/BuildBoost.cmake index c75eaff6e48..92ba07be1c7 100644 --- a/cmake/modules/BuildBoost.cmake +++ b/cmake/modules/BuildBoost.cmake @@ -163,7 +163,7 @@ function(do_build_boost version) include(ExternalProject) ExternalProject_Add(Boost ${source_dir} - PATCH_COMMAND patch -p1 < ${CMAKE_CURRENT_SOURCE_DIR}/patches/boost_context_asm_arm_syntax_unified.patch + PATCH_COMMAND patch -d -p1 < ${CMAKE_MODULE_PATH}/boost_context_asm_arm_syntax_unified.patch CONFIGURE_COMMAND CC=${CMAKE_C_COMPILER} CXX=${CMAKE_CXX_COMPILER} ${configure_command} BUILD_COMMAND CC=${CMAKE_C_COMPILER} CXX=${CMAKE_CXX_COMPILER} ${build_command} BUILD_IN_SOURCE 1 diff --git a/patches/boost_context_asm_arm_syntax_unified.patch b/cmake/modules/boost_context_asm_arm_syntax_unified.patch similarity index 100% rename from patches/boost_context_asm_arm_syntax_unified.patch rename to cmake/modules/boost_context_asm_arm_syntax_unified.patch -- 2.39.5