From cbf309456bd09578f079fdcaf9aa3ae861c8064d Mon Sep 17 00:00:00 2001 From: msclock Date: Thu, 11 Apr 2024 08:50:25 +0800 Subject: [PATCH] perf: remove uninstall target runtime warning Signed-off-by: msclock --- cmake/install/Common.cmake | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmake/install/Common.cmake b/cmake/install/Common.cmake index f1e9be4..fe15a98 100644 --- a/cmake/install/Common.cmake +++ b/cmake/install/Common.cmake @@ -285,11 +285,11 @@ string(REGEX REPLACE \"\\n\" \"\;\" files \"\${files}\") foreach(file \${files}) message(STATUS \"Uninstalling \$ENV{DESTDIR}\${file}\") if(IS_SYMLINK \"\$ENV{DESTDIR}\${file}\" OR EXISTS \"\$ENV{DESTDIR}\${file}\") - exec_program( - \"@CMAKE_COMMAND@\" ARGS \"-E remove \\\"\$ENV{DESTDIR}\${file}\\\"\" + execute_process( + COMMAND \${CMAKE_COMMAND} -E remove \"\$ENV{DESTDIR}\${file}\" OUTPUT_VARIABLE rm_out - RETURN_VALUE rm_retval - ) + RESULT_VARIABLE rm_retval + ) if(NOT \"\${rm_retval}\" STREQUAL 0) message(FATAL_ERROR \"Problem when removing \$ENV{DESTDIR}\${file}\") endif()