From c6766cefb7b7457a2b40f867685050b0fadeaf28 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Mon, 26 Jan 2026 16:01:24 +0500 Subject: [PATCH] cmake_uninstall - speed up the process and fix cmake warnings --- cmake/cmake_uninstall.cmake.in | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/cmake/cmake_uninstall.cmake.in b/cmake/cmake_uninstall.cmake.in index d6e6464f87..cb15e0c494 100644 --- a/cmake/cmake_uninstall.cmake.in +++ b/cmake/cmake_uninstall.cmake.in @@ -29,19 +29,7 @@ foreach(file ${files}) message(STATUS "Uninstalling ${filepath}") if(IS_SYMLINK "${filepath}" OR EXISTS "${filepath}") - exec_program( - "@CMAKE_COMMAND@" - ARGS - "-E remove \"${filepath}\"" - OUTPUT_VARIABLE - rm_out - RETURN_VALUE - rm_retval - ) - - if(NOT "${rm_retval}" STREQUAL 0) - message(FATAL_ERROR "Problem when removing ${filepath}") - endif() + file(REMOVE "${filepath}") else(IS_SYMLINK "${filepath}" OR EXISTS "${filepath}") message(STATUS "File ${filepath} does not exist.") endif()