From ff24f789cbef9a54c90a55827a69091371cddec6 Mon Sep 17 00:00:00 2001 From: qiaolongfei Date: Wed, 16 May 2018 15:35:05 +0800 Subject: [PATCH] update pybind.h source dir --- CMakeLists.txt | 2 ++ cmake/inference_lib.cmake | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 030bd19b3f..6d87031314 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -216,6 +216,8 @@ endif(WITH_GOLANG) set(PADDLE_PYTHON_BUILD_DIR "${CMAKE_CURRENT_BINARY_DIR}/python/build") +message(STATUS "CMAKE_CURRENT_BINARY_DIR: ${CMAKE_CURRENT_BINARY_DIR}") + set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O3 -g -DNDEBUG") set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O3 -g -DNDEBUG") diff --git a/cmake/inference_lib.cmake b/cmake/inference_lib.cmake index 4d67be20a7..807a48a41f 100644 --- a/cmake/inference_lib.cmake +++ b/cmake/inference_lib.cmake @@ -150,7 +150,7 @@ copy(string_lib set(module "pybind") copy(pybind_lib - SRCS ${src_dir}/${module}/pybind.h + SRCS ${CMAKE_CURRENT_BINARY_DIR}/paddle/fluid/${module}/pybind.h DSTS ${dst_dir}/${module} ) -- GitLab