diff --git a/cmake/inference_lib.cmake b/cmake/inference_lib.cmake index 944c972a48a29..cc15a6714c81f 100755 --- a/cmake/inference_lib.cmake +++ b/cmake/inference_lib.cmake @@ -275,6 +275,11 @@ else() SRCS ${paddle_pir_lib} DSTS ${PADDLE_INFERENCE_INSTALL_DIR}/paddle/lib) endif() + set(paddle_common_lib ${PADDLE_BINARY_DIR}/paddle/common/libcommon.*) + copy( + inference_lib_dist + SRCS ${paddle_common_lib} + DSTS ${PADDLE_INFERENCE_INSTALL_DIR}/paddle/lib) endif() copy(