diff --git a/cmake/inference_lib.cmake b/cmake/inference_lib.cmake index 7de71ff91e728713956758e750ef079f6efb9946..bd66c79591345129751d999f9e9c2bbf13099af9 100644 --- a/cmake/inference_lib.cmake +++ b/cmake/inference_lib.cmake @@ -173,6 +173,10 @@ copy(inference_lib_dist SRCS ${src_dir}/inference/api/paddle_*.h ${paddle_fluid_lib} DSTS ${FLUID_INFERENCE_INSTALL_DIR}/paddle/include ${FLUID_INFERENCE_INSTALL_DIR}/paddle/lib) +copy(inference_lib_dist + SRCS ${CMAKE_BINARY_DIR}/paddle/fluid/framework/framework.pb.h + DSTS ${FLUID_INFERENCE_INSTALL_DIR}/paddle/include/internal) + # CAPI inference library for only inference set(FLUID_INFERENCE_C_INSTALL_DIR "${CMAKE_BINARY_DIR}/fluid_inference_c_install_dir" CACHE STRING "A path setting CAPI fluid inference shared")