Skip to content

Commit ff24f78

Browse files
committed
update pybind.h source dir
1 parent 11a8814 commit ff24f78

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,8 @@ endif(WITH_GOLANG)
216216

217217
set(PADDLE_PYTHON_BUILD_DIR "${CMAKE_CURRENT_BINARY_DIR}/python/build")
218218

219+
message(STATUS "CMAKE_CURRENT_BINARY_DIR: ${CMAKE_CURRENT_BINARY_DIR}")
220+
219221
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O3 -g -DNDEBUG")
220222
set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O3 -g -DNDEBUG")
221223

cmake/inference_lib.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ copy(string_lib
150150

151151
set(module "pybind")
152152
copy(pybind_lib
153-
SRCS ${src_dir}/${module}/pybind.h
153+
SRCS ${CMAKE_CURRENT_BINARY_DIR}/paddle/fluid/${module}/pybind.h
154154
DSTS ${dst_dir}/${module}
155155
)
156156

0 commit comments

Comments
 (0)