From de735a9a819cd2c53d115e99b25a422ede0614d9 Mon Sep 17 00:00:00 2001 From: Feiyu Chan Date: Tue, 24 May 2022 15:05:14 +0800 Subject: [PATCH] fix cmake command, rm -> remove (#42927) --- paddle/phi/api/lib/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paddle/phi/api/lib/CMakeLists.txt b/paddle/phi/api/lib/CMakeLists.txt index 7d28e3d27c..004ed8de52 100644 --- a/paddle/phi/api/lib/CMakeLists.txt +++ b/paddle/phi/api/lib/CMakeLists.txt @@ -146,7 +146,7 @@ elseif(EXISTS "${generated_op_path}.tmp") execute_process(COMMAND ${CMAKE_COMMAND} -E copy "${generated_op_path}.tmp" "${generated_op_path}") message("copy ${generated_op_path}.tmp ${generated_op_path}") else() - execute_process(COMMAND ${CMAKE_COMMAND} -E rm -f "${generated_op_path}") + execute_process(COMMAND ${CMAKE_COMMAND} -E remove -f "${generated_op_path}") message("remove ${generated_op_path}") endif() @@ -158,7 +158,7 @@ elseif(EXISTS "${generated_argument_mapping_path}.tmp") execute_process(COMMAND ${CMAKE_COMMAND} -E copy "${generated_argument_mapping_path}.tmp" "${generated_argument_mapping_path}") message("copy ${generated_argument_mapping_path}.tmp ${generated_argument_mapping_path}") else() - execute_process(COMMAND ${CMAKE_COMMAND} -E rm -f "${generated_argument_mapping_path}") + execute_process(COMMAND ${CMAKE_COMMAND} -E remove -f "${generated_argument_mapping_path}") message("remove ${generated_argument_mapping_path}") endif() -- GitLab