diff --git a/cmake/inference_lib.cmake b/cmake/inference_lib.cmake index 34d1fb7dd46fc4ca66ddffeba04ce82089c92c52..c3b668b8369110e0a35863780aa54ace9458ed95 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(