diff --git a/cmake/paddlepaddle.cmake b/cmake/paddlepaddle.cmake index 3f8c40562ca3830132afd1681168cf6045ef09cd..7814858d2d1213ff5d694af4e47006fffd36d220 100644 --- a/cmake/paddlepaddle.cmake +++ b/cmake/paddlepaddle.cmake @@ -180,7 +180,7 @@ endif() ADD_LIBRARY(paddle_inference STATIC IMPORTED GLOBAL) SET_PROPERTY(TARGET paddle_inference PROPERTY IMPORTED_LOCATION ${PADDLE_INSTALL_DIR}/lib/libpaddle_inference.a) -if (WITH_ASCEND_CL) +if (WITH_ASCEND_CL OR WITH_XPU) SET_PROPERTY(TARGET paddle_inference PROPERTY IMPORTED_LOCATION ${PADDLE_INSTALL_DIR}/lib/libpaddle_inference.so) endif()