Skip to content

Commit 5c58eee

Browse files
authored
Merge pull request #10690 from jacquesqiao/add-use-op-to-paddle-lib
add pybind.h to inference lib for static link
2 parents e528862 + 3c2fe94 commit 5c58eee

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cmake/inference_lib.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,4 +148,10 @@ copy(string_lib
148148
DSTS ${dst_dir}/${module} ${dst_dir}/${module}/tinyformat
149149
)
150150

151+
set(module "pybind")
152+
copy(pybind_lib
153+
SRCS ${CMAKE_CURRENT_BINARY_DIR}/paddle/fluid/${module}/pybind.h
154+
DSTS ${dst_dir}/${module}
155+
)
156+
151157
add_custom_target(inference_lib_dist DEPENDS ${inference_lib_dist_dep})

0 commit comments

Comments
 (0)