From 3ec55faa62c376dc72474ba687bbd411a56a49e2 Mon Sep 17 00:00:00 2001 From: chalsliu <45041955+chalsliu@users.noreply.github.com> Date: Mon, 26 Jun 2023 11:11:26 +0800 Subject: [PATCH] [Inference] Fix IR shared lib not found --- cmake/inference_lib.cmake | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cmake/inference_lib.cmake b/cmake/inference_lib.cmake index 34d1fb7dd46..c3b668b8369 100755 --- a/cmake/inference_lib.cmake +++ b/cmake/inference_lib.cmake @@ -276,7 +276,13 @@ else() SRCS ${paddle_phi_lib} DSTS ${PADDLE_INFERENCE_INSTALL_DIR}/paddle/lib) endif() - + if(WITH_SHARED_IR) + set(paddle_ir_lib ${PADDLE_BINARY_DIR}/paddle/ir/libir.*) + copy( + inference_lib_dist + SRCS ${paddle_ir_lib} + DSTS ${PADDLE_INFERENCE_INSTALL_DIR}/paddle/lib) + endif() endif() copy( -- GitLab