diff --git a/cmake/paddlepaddle.cmake b/cmake/paddlepaddle.cmake index d0cbac9f329b2890c7510f85bf66810862a5ae4f..3f8c40562ca3830132afd1681168cf6045ef09cd 100644 --- a/cmake/paddlepaddle.cmake +++ b/cmake/paddlepaddle.cmake @@ -53,6 +53,7 @@ else() set(WITH_TRT OFF) endif() if (WITH_GPU) + SET(PADDLE_VERSION "2.3.0-no-ort") SET(PADDLE_LIB_VERSION "${PADDLE_VERSION}/cxx_c/Linux/GPU/${CUDA_SUFFIX}") elseif (WITH_LITE) message("cpu arch: ${CMAKE_SYSTEM_PROCESSOR}") @@ -85,6 +86,7 @@ elseif (WITH_ASCEND_CL) endif() else() if (WITH_AVX) + SET(PADDLE_VERSION "2.3.0-no-ort") if (WITH_MKLML) SET(PADDLE_LIB_VERSION "${PADDLE_VERSION}/cxx_c/Linux/CPU/gcc8.2_avx_mkl") else() @@ -177,7 +179,7 @@ if (NOT WITH_MKLML) endif() ADD_LIBRARY(paddle_inference STATIC IMPORTED GLOBAL) -SET_PROPERTY(TARGET paddle_inference PROPERTY IMPORTED_LOCATION ${PADDLE_INSTALL_DIR}/lib/libpaddle_inference.so) +SET_PROPERTY(TARGET paddle_inference PROPERTY IMPORTED_LOCATION ${PADDLE_INSTALL_DIR}/lib/libpaddle_inference.a) if (WITH_ASCEND_CL) SET_PROPERTY(TARGET paddle_inference PROPERTY IMPORTED_LOCATION ${PADDLE_INSTALL_DIR}/lib/libpaddle_inference.so) endif()