From f98ff2ce4eea837eee2304ca1c69ffc9f64bdf80 Mon Sep 17 00:00:00 2001 From: HongyuJia Date: Tue, 28 Mar 2023 16:01:54 +0800 Subject: [PATCH] [Fix Bug] Fix CustomOP cmake copy file error in inference (#52171) --- cmake/phi_header.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake/phi_header.cmake b/cmake/phi_header.cmake index c3da8c70536..7596b59e71c 100644 --- a/cmake/phi_header.cmake +++ b/cmake/phi_header.cmake @@ -53,4 +53,6 @@ file(RENAME ${PADDLE_INFERENCE_INSTALL_DIR}/paddle/include/experimental/ext_all.h) # Included header file of training and inference can be unified as single file: paddle/extension.h file(COPY ${PADDLE_INFERENCE_INSTALL_DIR}/paddle/include/experimental/ext_all.h - DESTINATION ${PADDLE_INFERENCE_INSTALL_DIR}/paddle/extension.h) + DESTINATION ${PADDLE_INFERENCE_INSTALL_DIR}/paddle) +file(RENAME ${PADDLE_INFERENCE_INSTALL_DIR}/paddle/ext_all.h + ${PADDLE_INFERENCE_INSTALL_DIR}/paddle/extension.h) -- GitLab