From 937266a2634875c6adf9fc7b12360d43983570f9 Mon Sep 17 00:00:00 2001 From: chalsliu <45041955+chalsliu@users.noreply.github.com> Date: Fri, 17 Nov 2023 11:38:56 +0800 Subject: [PATCH] [Inference] Fix libcommon not found (#59048) --- cmake/inference_lib.cmake | 5 +++++ 1 file changed, 5 insertions(+) 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(