From af2cd942bb7baa487d0289d10fdfce7e35a6ba55 Mon Sep 17 00:00:00 2001 From: qiaolongfei Date: Tue, 15 May 2018 09:50:48 +0800 Subject: [PATCH 1/3] copy boost --- cmake/inference_lib.cmake | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmake/inference_lib.cmake b/cmake/inference_lib.cmake index cc758019827b9..78857cf2a0f9e 100644 --- a/cmake/inference_lib.cmake +++ b/cmake/inference_lib.cmake @@ -70,6 +70,12 @@ copy(glog_lib DSTS ${dst_dir} ${dst_dir}/lib ) +set(dst_dir "${CMAKE_INSTALL_PREFIX}/third_party/install/boost") +copy(boost_lib + SRCS ${BOOST_INCLUDE_DIR} + DSTS ${dst_dir} +) + if(NOT PROTOBUF_FOUND) set(dst_dir "${CMAKE_INSTALL_PREFIX}/third_party/install/protobuf") copy(protobuf_lib From efd425cb5edf52b7dbe5f6f19226ec5e29cf375d Mon Sep 17 00:00:00 2001 From: qiaolongfei Date: Tue, 15 May 2018 17:07:13 +0800 Subject: [PATCH 2/3] only copy header file of boost --- cmake/inference_lib.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/inference_lib.cmake b/cmake/inference_lib.cmake index 78857cf2a0f9e..54014055b4c7d 100644 --- a/cmake/inference_lib.cmake +++ b/cmake/inference_lib.cmake @@ -70,9 +70,9 @@ copy(glog_lib DSTS ${dst_dir} ${dst_dir}/lib ) -set(dst_dir "${CMAKE_INSTALL_PREFIX}/third_party/install/boost") +set(dst_dir "${CMAKE_INSTALL_PREFIX}/third_party/boost/include") copy(boost_lib - SRCS ${BOOST_INCLUDE_DIR} + SRCS ${BOOST_INCLUDE_DIR}/boost DSTS ${dst_dir} ) From 2ddca7196dcec9cff8632ea8732a1a03215e48e9 Mon Sep 17 00:00:00 2001 From: qiaolongfei Date: Tue, 15 May 2018 17:45:02 +0800 Subject: [PATCH 3/3] update boost dst dir --- cmake/inference_lib.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/inference_lib.cmake b/cmake/inference_lib.cmake index 54014055b4c7d..06a7ae56827d5 100644 --- a/cmake/inference_lib.cmake +++ b/cmake/inference_lib.cmake @@ -70,7 +70,7 @@ copy(glog_lib DSTS ${dst_dir} ${dst_dir}/lib ) -set(dst_dir "${CMAKE_INSTALL_PREFIX}/third_party/boost/include") +set(dst_dir "${CMAKE_INSTALL_PREFIX}/third_party/boost/") copy(boost_lib SRCS ${BOOST_INCLUDE_DIR}/boost DSTS ${dst_dir}