From f9627ebecc31921cd74869d97ea32eaf6a61027e Mon Sep 17 00:00:00 2001
From: Javier Galan <j.a.galan.81@gmail.com>
Date: Tue, 16 Jul 2024 21:37:20 +0200
Subject: [PATCH] cmake/cmake_uninstall.cmake.in Fixing issue probably due to
 cmake version

---
 cmake/cmake_uninstall.cmake.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cmake/cmake_uninstall.cmake.in b/cmake/cmake_uninstall.cmake.in
index dc36259c0..25cd0980b 100644
--- a/cmake/cmake_uninstall.cmake.in
+++ b/cmake/cmake_uninstall.cmake.in
@@ -9,9 +9,9 @@ foreach(file ${files})
   message(STATUS "Uninstalling $ENV{DESTDIR}${file}")
   if(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}")
     execute_process(
-      "${CMAKE_COMMAND}" ARGS "-E remove \"$ENV{DESTDIR}${file}\""
+	  COMMAND ${CMAKE_COMMAND} -E rm \"$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}")
-- 
GitLab